<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <meta http-equiv='X-UA-Compatible' content='IE=edge,chrome=1' />
    <meta name="renderer" content="webkit">
    <meta http-equiv="Expires" content="0">
    <meta http-equiv="Pragma" content="no-cache">
    <meta http-equiv="Cache-control" content="no-cache">
    <meta http-equiv="Cache" content="no-cache">
    <title>Apipost接口文档</title>
    <link href="https://img.cdn.apipost.cn/docs/css7/style.css?20220909" rel="stylesheet">
    <link href="https://img.cdn.apipost.cn/docs/css/font-awesome-4.7.0/css/font-awesome.min.css?20220909" rel="stylesheet">
    <link href="https://img.cdn.apipost.cn/docs/css7/github.css?20220909" rel="stylesheet">
    <link rel="stylesheet" href="https://img.cdn.apipost.cn/docs/css7/content-v7.css?20220909">
    <link href="https://img.cdn.apipost.cn/docs/css7/json-viewer.css?20220909" rel="stylesheet">
    <script type="text/javascript" src="https://img.cdn.apipost.cn/docs/js/jquery-3.4.1.min.js?20220909"></script>
    <script type="text/javascript" src="https://img.cdn.apipost.cn/docs/js7/marked.min.js?20220909"></script>
    <script type="text/javascript" src="https://img.cdn.apipost.cn/docs/js7/template-web.js?20220909"></script>
    <script type="text/javascript" src="https://img.cdn.apipost.cn/docs/js7/highlight.js?20220909"></script>
    <script type="text/javascript" src="https://img.cdn.apipost.cn/docs/js7/clipboard.min.js?20220909"></script>
    <script type="text/javascript" src="https://img.cdn.apipost.cn/docs/js7/crypto-js.min.js?20220909" charset="utf-8"></script>
    <script type="text/javascript" src="https://img.cdn.apipost.cn/docs/js/json5.min.js?20220909"></script>
    <script type="text/javascript" src="https://img.cdn.apipost.cn/docs/js/dayjs.min.js?20220909"></script>
    <script type="text/javascript" src="https://img.cdn.apipost.cn/docs/js/url-join.js?20220909"></script>
    <!-- <script type="text/javascript" src="./js/enc.min.js"></script> -->
    <script type="text/javascript" src="https://img.cdn.apipost.cn/docs/js/json-viewer.min.js?20220909"></script>
    <script type="text/javascript" src="https://img.cdn.apipost.cn/docs/js/lodash.min.js?20220909"></script>
    <script type="text/javascript">
        consoleLog = console.log; // 重写 consoleLog
        $(function () {

        })
    </script>
</head>

<body>
<div class="apipost-doc-body">
    <div class="apipost-doc-body-main">
        <div class="apipost-doc-body-nav">
            <div class="logo">
                <a href="https://www.apipost.cn/"><img class="project-logo" src="https://img.cdn.apipost.cn/docs/images7/logo.svg" /></a>
            </div>
            <div class="apipost-doc-body-nav-search">
                <img src="https://img.cdn.apipost.cn/docs/images7/search-icon.svg">
                <input type="text" name="search-input" placeholder="搜索目录、接口。支持 名称、URL、Method 搜索">
            </div>
            <div class="apipost-doc-body-nav-title"> 项目名 </div>
            <div class="apipost-doc-body-nav-list">
                <ul>
                    <li data-type="global" data-parent_id="0" data-target_id="001" data-indent="0"
                        class="global active">
                        <a class="load-data-btn" href="javascript:;" data-type="global" data-parent_id="0"
                           data-target_id="001" data-indent="0">全局公共参数</a>
                    </li>
                </ul>
                <ul class="apipost-left-nav-template">
                    <script type="text/html" id="apipost-left-nav-template-tpl">
                        {{if _.isArray(list)}}
                        {{each list item}}
                        {{if !item.indent}}
                        {{set indent = item.indent = 0}}
                        {{/if}}
                        <li data-type="{{item.target_type}}" data-parent_id="{{item.parent_id}}" data-target_id="{{item.target_id}}" data-indent="{{item.indent}}" class="{{item.target_type}} {{if target_id == item.target_id}}active{{/if}} {{if item.indent != 0}}is-hidden{{/if}}" style="padding-left: {{item.indent?item.indent:0}}em;">
                            {{if item.target_type == 'folder' || item.example_type == 'folder'}}
                            <a class="load-data-btn" href="javascript:;" data-type="{{item.target_type}}" data-parent_id="{{item.parent_id}}" data-target_id="{{item.local_target_id}}" data-indent="{{item.indent}}"><i class="fa fa-caret-down"></i>{{item.name}}</a>
                            {{else if item.target_type == 'websocket' || item.example_type == 'websocket'}}
                            <a class="load-data-btn" href="javascript:;" data-type="{{item.target_type}}" data-parent_id="{{item.parent_id}}" data-target_id="{{item.local_target_id}}" data-indent="{{item.indent}}"><em class="method websocket">WS</em><span>{{item.name}}</span></a>
                            {{else if item.target_type == 'doc' || item.example_type == 'doc'}}
                            <a class="load-data-btn" href="javascript:;" data-type="{{item.target_type}}" data-parent_id="{{item.parent_id}}" data-target_id="{{item.local_target_id}}" data-indent="{{item.indent}}"><em class="method doc">文本</em><span>{{item.name}}</span></a>
                            {{else if item.target_type == 'grpc' || item.example_type == 'grpc'}}
                            <a class="load-data-btn" href="javascript:;" data-type="{{item.target_type}}" data-parent_id="{{item.parent_id}}" data-target_id="{{item.local_target_id}}" data-indent="{{item.indent}}"><em class="method grpc">GRPC</em><span>{{item.name}}</span></a>
                            {{else}}
                            <a class="load-data-btn" href="javascript:;" data-type="{{item.target_type}}" data-parent_id="{{item.parent_id}}" data-target_id="{{item.local_target_id}}" data-indent="{{item.indent}}"><em class="method {{item.method}}">{{item.method}}</em><span>{{item.name}}</span></a>
                            {{/if}}
                            {{if item.target_type != 'folder' && item.color}}
                            <span style="margin-left:5px;display:inline-block;width:6px;height:6px;border-radius:50%;background-color: {{item.color}};"></span>



                            {{/if}}
                            {{if item.target_type == 'example'}}
                            <svg style="margin-left:5px;" width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
                                <path d="M4.91033 6.68207H3.30033C3.09013 6.68207 2.94513 6.4768 3.01993 6.28529L4.61973 2.18849C4.64137 2.13306 4.67976 2.08536 4.72982 2.0517C4.77987 2.01804 4.83923 2.00001 4.90003 2H7.59962C7.81262 2 7.95782 2.21054 7.87742 2.40303L6.94592 4.63367H8.69951C8.95741 4.63367 9.09501 4.93026 8.92491 5.11933L4.62553 9.89887C4.41653 10.1313 4.02903 9.92989 4.11013 9.63106L4.91033 6.68207Z" fill="#FFC01E"/>
                            </svg>
                            {{/if}}
                        </li>
                        {{if _.isArray(item.children)}}
                        {{each item.children as childrenItem key}}
                        {{if item.children[key].indent}}
                        {{set indent = item.children[key].indent = item.children[key].indent+2}}
                        {{else}}
                        {{set indent = item.children[key].indent = item.indent + 2}}
                        {{/if}}
                        {{/each}}

                        {{set _recursiveList ={list:item.children}; }}
                        {{include 'apipost-left-nav-template-tpl' _recursiveList}}
                        {{/if}}
                        {{/each}}
                        {{/if}}
                    </script>
                </ul>
            </div>
            <div class="apipost-doc-body-nav-drag-bar"></div>
        </div>
        <div class="apipost-doc-body-content">
            <div class="apipost-doc-wrap">
                <script type="text/html" id="apipost-doc-wrap-tpl">
                    <div class="apipost-doc-wrap-title">
                        <h2 class="title" data-text="{{data.name}}" id="{{data.name}}">
                            <div class="mobile-nav-toggle-btn">
                                <a href="javascript:;" class="mobile-nav-toggle-link-btn"><i class="fa fa-reorder"></i></a>
                            </div>
                            <div class="title-text">{{data.name}}</div>
                            {{if data.target_type == 'api' || data.example_type == 'api'}}
                            <button type="button" class="copy-clipboard" data-clipboard-text="{{JSON.stringify(data.copyData)}}"><i class="fa fa-copy"></i> 复制接口 </button>
                            {{/if}}
                            {{if data.target_type == 'api' || data.target_type == 'grpc' || data.target_type == 'websocket' || data.example_type == 'api' || data.example_type == 'grpc' || data.example_type == 'websocket'}}
                            <a type="button" class="copy-clipboard" data-clipboard-text="{{JSON.stringify(data)}}" href="https://v7.apipost.cn/#/apis/run?target_id={{data.target_id}}" target="_blank">去调试</a>
                            {{/if}}
                        </h2>
                    </div>
                    <div class="apipost-doc-wrap-desc">
                        <!-- 创建人：哈利厄 最后更新：哈利厄 &nbsp;&nbsp; -->
                        创建时间：{{data.format_create_dtime}} &nbsp;&nbsp;更新时间：{{data.format_update_dtime}}
                    </div>
                    {{if _.has(data, 'request.description')}}
                    <div class="apipost-doc-wrap-para-markdown">
                        <div class="markdown-section">{{@marked(data.request.description)}}</div>
                    </div>
                    {{/if}}
                    {{if data.target_type == 'grpc' || data.example_type == 'grpc'}}
                    <h3 class="apipost-doc-wrap-para-title" data-text="基本信息" id="基本信息">
                        <i class="fa fa-wpforms"></i>
                        <span>基本信息</span>
                    </h3>
                    <ul class="apipost-doc-wrap-base-para">
                        {{if _.has(data, 'formatMark') && _.isObject(data.formatMark)}}
                        <li><span>接口状态： </span><span style="color: {{data.formatMark.color}};">{{data.formatMark.name}}</span> </li>
                        {{/if}}
                    </ul>
                    {{if _.has(data, 'protos') && _.isObject(data.protos) && Object.values(data.protos).length > 0}}
                    <h3 class="apipost-doc-wrap-para-title" data-text="方法列表" id="方法列表">
                        <i class="fa fa-wpforms"></i>
                        <span>方法列表</span>
                    </h3>
                    {{each data.protos item key}}
                    {{if _.has(item, 'services') && _.isObject(item.services) && !_.isEmpty(item.services)}}
                    <h4 class="apipost-doc-wrap-para-title" data-text="{{key}}" id="{{key}}">
                        <span>{{key}}</span>
                    </h4>
                    <div class="apipost-doc-paras" for-id="{{key}}">
                        {{each item.services service namespace}}
                        {{if _.isObject(service)}}
                        {{each service method methodName}}
                        <h5 data-text="{{namespace}}/{{methodName}}" id="{{namespace}}/{{methodName}}"><a name="{{key}}/{{namespace}}/{{methodName}}">[method]</a> {{key}}/{{namespace}}/{{methodName}}</h5>
                        <ul class="apipost-doc-wrap-base-para">
                            <li><span>方法名： </span><span><i class="copy-clipboard"  data-clipboard-text="{{methodName}}">{{methodName}}</i></span> </li>
                            <li><span>服务地址： </span><span><i class="copy-clipboard"  data-clipboard-text="{{method.url}}">{{method.url}}</i></span> </li>
                        </ul>
                        {{if _.has(method, 'request.body.raw') && method.request.body.raw != ''}}
                        <h6 data-text="请求参数" id="请求参数">请求参数</h6>
                        <div class="apipost-raw-json request-body-json-view">
                            <button type="button" class="copy-clipboard" data-clipboard-text="{{method.request.body.raw}}"><i class="fa fa-clipboard"></i>复制</button>
                            <input type="hidden" id="request-body-raw-editor-input-{{methodName}}" value='{{method.request.body.raw}}'>
                            <pre class="request-body-raw-editor-json" id="request-body-raw-editor-json-{{methodName}}"><code class="json">{{method.request.body.raw}}</code></pre>
                        </div>
                        {{if _.has(method, 'request.body.parameter') && _.isArray(method.request.body.parameter) && method.request.body.parameter.length > 0}}
                        <table>
                            <thead>
                            <tr>
                                <th>参数名</th>
                                <th>参数值</th>
                                <th>是否必填</th>
                                <th>参数类型</th>
                                <th>描述说明</th>
                            </tr>
                            </thead>
                            <tbody>
                            {{each method.request.body.parameter item}}
                            <tr>
                                <td><i class="copy-clipboard"  data-clipboard-text="{{item.key}}">{{item.key}}</i></td>
                                <td style="position: relative;">
                                    {{if item.value_var}}
                                    {{item.value_var}}
                                    <img src="https://img.cdn.apipost.cn/v6/docs/img/vars.svg" alt="">
                                    <div class="vars_title">
                                        变量{{item.value}} 生成
                                    </div>
                                    {{else}}
                                    <pre>{{item.value}}</pre>
                                    {{/if}}
                                </td>
                                <td>{{(item.not_null >0) ? '是' : '否'}}</td>
                                <td>{{item.field_type}}</td>
                                <td>
                                    <pre>{{item.description}}</pre>
                                </td>
                            </tr>
                            {{/each}}
                            </tbody>
                        </table>
                        {{/if}}
                        {{/if}}
                        {{if _.has(method, 'response') && _.isObject(method.response) && !_.isEmpty(method.response)}}
                        {{each method.response response name}}
                        {{if response.raw != ''}}
                        <h6 data-text="{{name == 'success' ? '成功响应示例':'错误响应示例'}}" id="{{name == 'success' ? '成功响应示例':'错误响应示例'}}">{{name == 'success' ? '成功响应示例':'错误响应示例'}}</h6>
                        <div class="apipost-raw-json response-body-json-view">
                            <button type="button" class="copy-clipboard" data-clipboard-text="{{response.raw}}"><i class="fa fa-clipboard"></i>复制</button>
                            <input type="hidden" id="response-body-raw-editor-input-{{name}}" value='{{response.raw}}'>
                            <pre class="request-body-raw-editor-json" id="response-body-raw-editor-json-{{name}}"><code class="json">{{response.raw}}</code></pre>
                        </div>
                        {{if _.has(response, 'parameter') && _.isArray(response.parameter) && response.parameter.length > 0}}
                        <table>
                            <thead>
                            <tr>
                                <th>参数名</th>
                                <th>参数值</th>
                                <th>是否必填</th>
                                <th>参数类型</th>
                                <th>描述说明</th>
                            </tr>
                            </thead>
                            <tbody>
                            {{each response.parameter item}}
                            <tr>
                                <td><i class="copy-clipboard"  data-clipboard-text="{{item.key}}">{{item.key}}</i></td>
                                <td>
                                    <pre>{{item.value}}</pre>
                                </td>
                                <td>{{(item.not_null >0) ? '是' : '否'}}</td>
                                <td>{{item.field_type}}</td>
                                <td>
                                    <pre>{{item.description}}</pre>
                                </td>
                            </tr>
                            {{/each}}
                            </tbody>
                        </table>
                        {{/if}}
                        {{/if}}
                        {{/each}}
                        {{/if}}
                        <hr>
                        {{/each}}
                        {{/if}}
                        {{/each}}
                    </div>
                    {{/if}}
                    {{/each}}
                    {{/if}}
                    {{/if}}
                    {{if data.target_type == 'folder'}}
                    <h3 class="apipost-doc-wrap-para-title" data-text="目录参数" id="目录参数">
                        <i class="fa fa-wpforms"></i>
                        <span>目录参数</span>
                    </h3>
                    <div class="apipost-doc-paras" for-id="目录参数">
                        {{if _.has(data, 'request.header') && _.isArray(data.request.header) && data.request.header.length > 0}}
                        <h4 data-text="Header 请求参数" id="Header 请求参数">Header 请求参数</h4>
                        <table>
                            <thead>
                            <tr>
                                <th>参数名</th>
                                <th>参数值</th>
                                <th>是否必填</th>
                                <th>参数类型</th>
                                <th>描述说明</th>
                            </tr>
                            </thead>
                            <tbody>
                            {{each data.request.header item}}
                            <tr>
                                <td><i class="copy-clipboard"  data-clipboard-text="{{item.key}}">{{item.key}}</i></td>
                                <td style="position: relative;">
                                    {{if item.value_var}}
                                    {{item.value_var}}
                                    <img src="https://img.cdn.apipost.cn/v6/docs/img/vars.svg" alt="">
                                    <div class="vars_title">
                                        变量{{item.value}} 生成
                                    </div>
                                    {{else}}
                                    <pre>{{item.value}}</pre>
                                    {{/if}}
                                </td>
                                <td>{{(item.not_null >0) ? '是' : '否'}}</td>
                                <td>{{item.field_type}}</td>
                                <td>
                                    <pre>{{item.description}}</pre>
                                </td>
                            </tr>
                            {{/each}}
                            </tbody>
                        </table>
                        {{/if}}
                        {{if _.has(data, 'request.query') && _.isArray(data.request.query) && data.request.query.length > 0}}
                        <h4 data-text="Query 请求参数" id="Query 请求参数">Query 请求参数</h4>
                        <table>
                            <thead>
                            <tr>
                                <th>参数名</th>
                                <th>参数值</th>
                                <th>是否必填</th>
                                <th>参数类型</th>
                                <th>描述说明</th>
                            </tr>
                            </thead>
                            <tbody>
                            {{each data.request.query item}}
                            <tr>
                                <td><i class="copy-clipboard"  data-clipboard-text="{{item.key}}">{{item.key}}</i></td>
                                <td style="position: relative;">
                                    {{if item.value_var}}
                                    {{item.value_var}}
                                    <img src="https://img.cdn.apipost.cn/v6/docs/img/vars.svg" alt="">
                                    <div class="vars_title">
                                        变量{{item.value}} 生成
                                    </div>
                                    {{else}}
                                    <pre>{{item.value}}</pre>
                                    {{/if}}
                                </td>
                                <td>{{(item.not_null >0) ? '是' : '否'}}</td>
                                <td>{{item.field_type}}</td>
                                <td>
                                    <pre>{{item.description}}</pre>
                                </td>
                            </tr>
                            {{/each}}
                            </tbody>
                        </table>
                        {{/if}}
                        {{if _.has(data, 'request.body') && _.isArray(data.request.body) && data.request.body.length > 0}}
                        <h4 data-text="Body 请求参数" id="Body 请求参数">Body 请求参数</h4>
                        <table>
                            <thead>
                            <tr>
                                <th>参数名</th>
                                <th>参数值</th>
                                <th>是否必填</th>
                                <th>参数类型</th>
                                <th>描述说明</th>
                            </tr>
                            </thead>
                            <tbody>
                            {{each data.request.body item}}
                            <tr>
                                <td><i class="copy-clipboard"  data-clipboard-text="{{item.key}}">{{item.key}}</i></td>
                                <td style="position: relative;">
                                    {{if item.value_var}}
                                    {{item.value_var}}
                                    <img src="https://img.cdn.apipost.cn/v6/docs/img/vars.svg" alt="">
                                    <div class="vars_title">
                                        变量{{item.value}} 生成
                                    </div>
                                    {{else}}
                                    <pre>{{item.type == 'File' ? '[文件路径]':item.value}}</pre>
                                    {{/if}}
                                </td>
                                <td>{{(item.not_null >0) ? '是' : '否'}}</td>
                                <td>{{item.type == 'File' ? '[文件类型]':item.field_type}}</td>
                                <td>
                                    <pre>{{item.description}}</pre>
                                </td>
                            </tr>
                            {{/each}}
                            </tbody>
                        </table>
                        {{/if}}
                        {{if _.has(data, 'request.authType')}}
                        <h4 data-text="认证方式" id="认证方式">认证方式</h4>
                        <ul class="apipost-doc-wrap-base-para">
                            <li>{{data.request.authType}}</li>
                        </ul>
                        {{/if}}
                    </div>
                    {{/if}}
                    {{if data.target_type == 'global'}}
                    <div class="apipost-global-tips">
                        说明：全局公共参数是针对项目而言的，所有请求的 HTTP 类型的接口都需要携带此参数。
                    </div>
                    <h3 data-text="全局公共参数" id="全局公共参数" class="apipost-doc-wrap-para-title">
                        <i class="fa fa-wpforms"></i>
                        <span>全局公共参数</span>
                    </h3>
                    <div class="apipost-doc-paras" for-id="全局公共参数">
                        {{if _.has(data, 'request.header') && _.isArray(data.request.header) && data.request.header.length > 0}}
                        <h4 data-text="Header 请求参数" id="Header 请求参数" >Header 请求参数</h4>
                        <table>
                            <thead>
                            <tr>
                                <th>参数名</th>
                                <th>参数值</th>


                                <th>描述说明</th>
                            </tr>
                            </thead>
                            <tbody>
                            {{each data.request.header item}}
                            <tr>
                                <td><i class="copy-clipboard"  data-clipboard-text="{{item.key}}">{{item.key}}</i></td>
                                <td style="position: relative;">
                                    {{if item.value_var}}
                                    {{item.value_var}}
                                    <img src="https://img.cdn.apipost.cn/v6/docs/img/vars.svg" alt="">
                                    <div class="vars_title">
                                        变量{{item.value}} 生成
                                    </div>
                                    {{else}}
                                    <pre>{{item.value}}</pre>
                                    {{/if}}
                                </td>


                                <td>
                                    <pre>{{item.description}}</pre>
                                </td>
                            </tr>
                            {{/each}}
                            </tbody>
                        </table>
                        {{/if}}
                        {{if _.has(data, 'request.query') && _.isArray(data.request.query) && data.request.query.length > 0}}
                        <h4 data-text="Query 请求参数" id="Query 请求参数">Query 请求参数</h4>
                        <table>
                            <thead>
                            <tr>
                                <th>参数名</th>
                                <th>参数值</th>


                                <th>描述说明</th>
                            </tr>
                            </thead>
                            <tbody>
                            {{each data.request.query item}}
                            <tr>
                                <td><i class="copy-clipboard"  data-clipboard-text="{{item.key}}">{{item.key}}</i></td>
                                <td style="position: relative;">
                                    {{if item.value_var}}
                                    {{item.value_var}}
                                    <img src="https://img.cdn.apipost.cn/v6/docs/img/vars.svg" alt="">
                                    <div class="vars_title">
                                        变量{{item.value}} 生成
                                    </div>
                                    {{else}}
                                    <pre>{{item.value}}</pre>
                                    {{/if}}
                                </td>


                                <td>
                                    <pre>{{item.description}}</pre>
                                </td>
                            </tr>
                            {{/each}}
                            </tbody>
                        </table>
                        {{/if}}
                        {{if _.has(data, 'request.body') && _.isArray(data.request.body) && data.request.body.length > 0}}
                        <h4 data-text="Body 请求参数" id="Body 请求参数">Body 请求参数</h4>
                        <table>
                            <thead>
                            <tr>
                                <th>参数名</th>
                                <th>参数值</th>


                                <th>描述说明</th>
                            </tr>
                            </thead>
                            <tbody>
                            {{each data.request.body item}}
                            <tr>
                                <td><i class="copy-clipboard"  data-clipboard-text="{{item.key}}">{{item.key}}</i></td>
                                <td style="position: relative;">
                                    {{if item.value_var}}
                                    {{item.value_var}}
                                    <img src="https://img.cdn.apipost.cn/v6/docs/img/vars.svg" alt="">
                                    <div class="vars_title">
                                        变量{{item.value}} 生成
                                    </div>
                                    {{else}}
                                    <pre>{{item.type == 'File' ? '[文件路径]':item.value}}</pre>
                                    {{/if}}
                                </td>


                                <td>
                                    <pre>{{item.description}}</pre>
                                </td>
                            </tr>
                            {{/each}}
                            </tbody>
                        </table>
                        {{/if}}
                        {{if _.has(data, 'script.auth.type')}}
                        <h4 data-text="认证方式" id="认证方式">认证方式</h4>
                        <ul class="apipost-doc-wrap-base-para">
                            <li>{{data.script.auth.type}}</li>
                        </ul>
                        {{/if}}
                    </div>
                    {{/if}}
                    {{if data.target_type == 'websocket' || data.example_type == 'websocket'}}
                    <h3 data-text="基本信息" id="基本信息" class="apipost-doc-wrap-para-title">
                        <i class="fa fa-wpforms"></i>
                        <span>基本信息</span>
                    </h3>
                    <ul class="apipost-doc-wrap-base-para">
                        {{if _.has(data, 'formatMark') && _.isObject(data.formatMark)}}
                        <li><span>接口状态： </span><span style="color: {{data.formatMark.color}};">{{data.formatMark.name}}</span> </li>
                        {{/if}}
                        <li><span>接口URL： </span><span><em class="method {{data.method}}">{{data.method}}</em>
                                <i class="copy-clipboard"  data-clipboard-text="{{data.url}}">{{data.url}}</i></span> </li>
                    </ul>
                    {{/if}}
                    {{if data.target_type == 'api' || data.example_type == 'api'}}
                    <h3 data-text="基本信息" id="基本信息" class="apipost-doc-wrap-para-title">
                        <i class="fa fa-wpforms"></i>
                        <span>基本信息</span>
                    </h3>
                    <ul class="apipost-doc-wrap-base-para">
                        {{if _.has(data, 'formatMark') && _.isObject(data.formatMark)}}
                        <li><span>接口状态： </span><span style="color: {{data.formatMark.color}};">{{data.formatMark.name}}</span> </li>
                        {{/if}}
                        <li><span>接口URL： </span><span><em class="method {{data.method}}">{{data.method}}</em>
                                <i class="copy-clipboard"  data-clipboard-text="{{data.url}}">{{data.url}}</i></span> </li>
                        {{if data.mock_url != ''}}
                        <li><span>本地 Mock： </span><span><i class="copy-clipboard"  data-clipboard-text="{{urlJoin('http://127.0.0.1:10393/mock/',data.project_id, data.mock_url,'?apipost_id='+data.target_id.toString().substr(0,6))}}">{{urlJoin('http://127.0.0.1:10393/mock/',data.project_id, data.mock_url,'?apipost_id='+data.target_id.toString().substr(0,6))}}</i><br><a href="https://www.apipost.cn/download.html" target="_blank">需安装 Apipost v7 客户端</a> </span> </li>
                        {{if data.enable_server_mock > 0}}
                        <li><span>云端 Mock： </span><span><i class="copy-clipboard"  data-clipboard-text="{{urlJoin('https://console-mock.apipost.cn/mock/',data.project_id, data.mock_url,'?apipost_id='+data.target_id.toString().substr(0,6))}}">{{urlJoin('https://console-mock.apipost.cn/mock/',data.project_id, data.mock_url,'?apipost_id='+data.target_id.toString().substr(0,6))}}</i></span> </li>
                        {{/if}}
                        {{/if}}
                        {{if _.has(data, 'request.body.formatMode')}}
                        <li><span>Content-Type：</span><span><i class="copy-clipboard" data-clipboard-text="{{data.request.body.formatMode}}">{{data.request.body.formatMode}}</i></span></li>
                        {{/if}}
                        {{if _.has(data, 'request.authType')}}
                        <li><span>认证方式：</span><span><i class="copy-clipboard" data-clipboard-text="{{data.request.authType}}">{{data.request.authType}}</i></span></li>
                        {{/if}}
                    </ul>
                    <h3 data-text="请求参数" id="请求参数" class="apipost-doc-wrap-para-title">
                        <i class="fa fa-wpforms"></i>
                        <span>请求参数</span>
                    </h3>
                    <div class="apipost-doc-paras" for-id="请求参数">
                        {{if _.has(data, 'request.header.parameter') && _.isArray(data.request.header.parameter) && data.request.header.parameter.length > 0}}
                        <h4 data-text="Header 请求参数" id="Header 请求参数" >Header 请求参数</h4>
                        <table>
                            <thead>
                            <tr>
                                <th>参数名</th>
                                <th>参数值</th>
                                <th>是否必填</th>
                                <th>参数类型</th>
                                <th>描述说明</th>
                            </tr>
                            </thead>
                            <tbody>
                            {{each data.request.header.parameter item}}
                            <tr>
                                <td><i class="copy-clipboard"  data-clipboard-text="{{item.key}}">{{item.key}}</i></td>
                                <td style="position: relative;">
                                    {{if item.value_var}}
                                    {{item.value_var}}
                                    <img src="https://img.cdn.apipost.cn/v6/docs/img/vars.svg" alt="">
                                    <div class="vars_title">
                                        变量{{item.value}} 生成
                                    </div>
                                    {{else}}
                                    <pre>{{item.value}}</pre>
                                    {{/if}}
                                </td>
                                <td>{{(item.not_null >0) ? '是' : '否'}}</td>
                                <td>{{item.field_type}}</td>
                                <td>
                                    <pre>{{item.description}}</pre>
                                </td>
                            </tr>
                            {{/each}}
                            </tbody>
                        </table>
                        {{/if}}
                        {{if _.has(data, 'request.query.parameter') && _.isArray(data.request.query.parameter) && data.request.query.parameter.length > 0}}
                        <h4 data-text="Query 请求参数" id="Query 请求参数" >Query 请求参数</h4>
                        <table>
                            <thead>
                            <tr>
                                <th>参数名</th>
                                <th>参数值</th>
                                <th>是否必填</th>
                                <th>参数类型</th>
                                <th>描述说明</th>
                            </tr>
                            </thead>
                            <tbody>
                            {{each data.request.query.parameter item}}
                            <tr>
                                <td><i class="copy-clipboard"  data-clipboard-text="{{item.key}}">{{item.key}}</i></td>
                                <td style="position: relative;">
                                    {{if item.value_var}}
                                    {{item.value_var}}
                                    <img src="https://img.cdn.apipost.cn/v6/docs/img/vars.svg" alt="">
                                    <div class="vars_title">
                                        变量{{item.value}} 生成
                                    </div>
                                    {{else}}
                                    <pre>{{item.type == 'File' ? '[文件路径]':item.value}}</pre>
                                    {{/if}}
                                </td>
                                <td>{{(item.not_null >0) ? '是' : '否'}}</td>
                                <td>{{item.field_type}}</td>
                                <td>
                                    <pre>{{item.description}}</pre>
                                </td>
                            </tr>
                            {{/each}}
                            </tbody>
                        </table>
                        {{/if}}
                        {{if _.has(data, 'request.resful.parameter') && _.isArray(data.request.resful.parameter) && data.request.resful.parameter.length > 0}}
                        <h4 data-text="路径参数及说明" id="路径参数及说明" >路径参数及说明</h4>
                        <table>
                            <thead>
                            <tr>
                                <th>参数名</th>
                                <th>参数值</th>
                                <th>描述说明</th>
                            </tr>
                            </thead>
                            <tbody>
                            {{each data.request.resful.parameter item}}
                            <tr>
                                <td><i class="copy-clipboard"  data-clipboard-text="{{item.key}}">{{item.key}}</i></td>
                                <td style="position: relative;">
                                    {{if item.value_var}}
                                    {{item.value_var}}
                                    <img src="https://img.cdn.apipost.cn/v6/docs/img/vars.svg" alt="">
                                    <div class="vars_title">
                                        变量{{item.value}} 生成
                                    </div>
                                    {{else}}
                                    <pre>{{item.type == 'File' ? '[文件路径]':item.value}}</pre>
                                    {{/if}}
                                </td>
                                <td>
                                    <pre>{{item.description}}</pre>
                                </td>
                            </tr>
                            {{/each}}
                            </tbody>
                        </table>
                        {{/if}}
                        {{if _.has(data, 'request.body.mode') && data.request.body.mode != 'none'}}
                        <h4 data-text="Body 请求参数" id="Body 请求参数" >Body 请求参数</h4>
                        {{if data.request.body.mode == 'form-data' || data.request.body.mode == 'urlencoded'}}
                        {{if _.has(data, 'request.body.parameter') && _.isArray(data.request.body.parameter) && data.request.body.parameter.length > 0}}
                        <table>
                            <thead>
                            <tr>
                                <th>参数名</th>
                                <th>参数值</th>
                                <th>是否必填</th>
                                <th>参数类型</th>
                                <th>描述说明</th>
                            </tr>
                            </thead>
                            <tbody>
                            {{each data.request.body.parameter item}}
                            <tr>
                                <td><i class="copy-clipboard"  data-clipboard-text="{{item.key}}">{{item.key}}</i></td>
                                <td style="position: relative;">
                                    {{if item.value_var}}
                                    {{item.value_var}}
                                    <img src="https://img.cdn.apipost.cn/v6/docs/img/vars.svg" alt="">
                                    <div class="vars_title">
                                        变量{{item.value}} 生成
                                    </div>
                                    {{else}}
                                    <pre>{{item.type == 'File' ? '[文件路径]':item.value}}</pre>
                                    {{/if}}
                                </td>
                                <td>{{(item.not_null >0) ? '是' : '否'}}</td>
                                <td>{{item.type == 'File' ? '[文件类型]':item.field_type}}</td>
                                <td>
                                    <pre>{{item.description}}</pre>
                                </td>
                            </tr>
                            {{/each}}
                            </tbody>
                        </table>
                        {{/if}}
                        {{else}}
                        {{if data.request.body.raw != ''}}
                        <div class="apipost-raw-json request-body-json-view">
                            <button type="button" class="copy-clipboard" data-clipboard-text="{{data.request.body.raw}}"><i class="fa fa-clipboard"></i>复制</button>
                            <input type="hidden" id="request-body-raw-editor-input" value='{{data.request.body.raw}}'>
                            <pre id="request-body-raw-editor-json"><code class="json">{{data.request.body.raw}}</code></pre>
                        </div>
                        {{if _.has(data, 'request.body.raw_para') && _.isArray(data.request.body.raw_para) && data.request.body.raw_para.length > 0}}
                        <table>
                            <thead>
                            <tr>
                                <th>参数名</th>
                                <th>参数值</th>
                                <th>是否必填</th>
                                <th>参数类型</th>
                                <th>描述说明</th>
                            </tr>
                            </thead>
                            <tbody>
                            {{each data.request.body.raw_para item}}
                            {{if item.key != ''}}
                            <tr>
                                <td><i class="copy-clipboard"  data-clipboard-text="{{item.key}}">{{item.key}}</i></td>
                                <td style="position: relative;">
                                    {{if item.value_var}}
                                    {{item.value_var}}
                                    <img src="https://img.cdn.apipost.cn/v6/docs/img/vars.svg" alt="">
                                    <div class="vars_title">
                                        变量{{item.value}} 生成
                                    </div>
                                    {{else}}
                                    <pre>{{item.value}}</pre>
                                    {{/if}}
                                </td>
                                <td>{{(item.not_null >0) ? '是' : '否'}}</td>
                                <td>{{item.field_type}}</td>
                                <td>
                                    <pre>{{item.description}}</pre>
                                </td>
                            </tr>
                            {{/if}}
                            {{/each}}
                            </tbody>
                        </table>
                        {{/if}}
                        {{/if}}
                        {{/if}}
                        {{/if}}
                    </div>
                    {{if _.has(data, 'response') && _.isObject(data.response) && Object.values(data.response).length > 0}}
                    <h3 data-text="响应示例" id="响应示例" class="apipost-doc-wrap-para-title">
                        <i class="fa fa-wpforms"></i>
                        <span>响应示例</span>
                    </h3>
                    <div class="apipost-doc-paras" for-id="响应示例">
                        {{each data.response item key}}
                        {{if _.has(item, 'expect.name') && item.raw != ''}}
                        <h4 data-text="{{item.expect.name}}（{{item.expect.code}}）" id="{{item.expect.name}}（{{item.expect.code}}）">{{item.expect.name}}（{{item.expect.code}}）</h4>
                        <div data-type="{{key}}" class="apipost-raw-json response-raw-json-view">
                            <button type="button" class="copy-clipboard" data-clipboard-text="{{item.raw}}"><i class="fa fa-clipboard"></i>复制</button>
                            <input type="hidden" id="response-raw-{{key}}-json-input" value='{{item.raw}}'>
                            <pre id="response-raw-{{key}}-json"><code class="json">{{item.raw}}</code></pre>
                        </div>
                        {{if _.has(item, 'parameter') && _.isArray(item.parameter) && item.parameter.length > 0}}
                        <table>
                            <thead>
                            <tr>
                                <th>参数名</th>
                                <th>参数值</th>
                                <!-- <th>是否必填</th> -->
                                <th>参数类型</th>
                                <th>描述说明</th>
                            </tr>
                            </thead>
                            <tbody>
                            {{each item.parameter item}}
                            {{if item.key != ''}}
                            <tr>
                                <td><i class="copy-clipboard"  data-clipboard-text="{{item.key}}">{{item.key}}</i></td>
                                <td>
                                    <pre>{{item.value}}</pre>
                                </td>
                                <!-- <td>{{(item.not_null >0) ? '是' : '否'}}</td> -->
                                <td>{{item.field_type}}</td>
                                <td>
                                    <pre>{{@replaceOperatorSymbol(item.description)}}</pre>
                                </td>
                            </tr>
                            {{/if}}
                            {{/each}}
                            </tbody>
                        </table>
                        {{/if}}
                        {{/if}}
                        {{/each}}
                    </div>
                    {{/if}}
                    {{/if}}
                    <footer> 本文档由 <a href="https://www.apipost.cn/" target="_blank">Apipost 接口管理工具 （https://www.apipost.cn）</a>
                        生成 </footer>
                </script>
            </div>
            <div class="apipost-float-navs">
                <h2>内容导航</h2>
                <ul class="apipost-float-nav-template">
                    <script type="text/html" id="apipost-float-nav-template-tpl">
                        {{if list.length > 0}}
                        {{each list item i}}
                        <li style="text-indent: {{item.indent*16}}px;" {{if i == 0}}class="active"{{/if}} data-id="{{item.id}}"><a href="#{{item.id}}">{{item.text}}</a></li>
                        {{/each}}
                        {{else}}
                        <li style="text-align: center;justify-content: center;">暂无导航数据</li>
                        {{/if}}
                    </script>
                </ul>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
    // 给 arttemplate 注入新函数
    template.defaults.imports.JSON = JSON;
    template.defaults.imports.urlJoin = urlJoin;
    template.defaults.imports._ = _;
    template.defaults.imports.marked = function (md) {
        marked.setOptions({
            renderer: new marked.Renderer(),
            highlight(code) {
                return hljs.highlight('javascript', code).value;
            },
            breaks: true,
            sanitize: true,
        });
        return marked.parse(md).replace(/<pre>/g, "<pre class='hljs javascript'>");
    };
    template.defaults.imports.Object = Object;
    template.defaults.imports.keyFormat = function (params) {
        const arr = params.split('.');
        let str = '';
        for (let i = 0; i < arr.length - 1; i++) {
            str += `<span style="color:#999">${arr[i]}.</span>`;
        }
        str += arr[arr.length - 1];
        return str;
    };
    template.defaults.imports.replaceOperatorSymbol = function (originString) {
        if (!originString || originString=='') {
            return '';
        }
        const result = originString.replace(/&([^&;]+);/g, function (matchStr, b) {
            const entity = {
                quot: '"',
                lt: '<',
                gt: '>',
                apos: "'",
                amp: '&',
                ldquo: '“',
                rdquo: '”',
            };
            const r = entity[b];
            return typeof r === 'string' ? r : matchStr;
        });
        return result;
    };
    template.defaults.imports.markForName = function (key) {
        try {
            if (apipostData.project.vars.mark.filter((it) => it.key === key)[0].name) {
                return apipostData.project.vars.mark.filter((it) => it.key === key)[0].name;
            }
            return '开发中';
        } catch (error) {
            return '开发中';
        }
    };

    // 接口排序
    function sortData(data, type) {
        data.sort((a, b) => {
            // 升序
            if (type == 'ascending') {
                if (a.sort != b.sort) {
                    return a.sort - b.sort;
                }
                return a.name.localeCompare(b.name);
            }
            // 降序
            if (type == 'descending') {
                if (a.sort != b.sort) {
                    return b.sort - a.sort;
                }
                return b.name.localeCompare(a.name);
            }
        });

        // 如果有嵌套children且children里面有数据 就递归调用排序函数
        if (_.isArray(data)) {
            data.forEach((item) => {
                if (item.children && item.children.length != 0) {
                    sortData(item.children, type);
                }
            });

            return data;
        }
        return [];
    }

    // 解析 url 并返回数组
    function GetUrlQuery(uri) {
        let url = '';
        if (typeof uri === 'undefined') {
            url = window.location.search;
        } else {
            url = `?${uri.split('?')[1]}`;
        }
        const theRequest = {};
        if (url.indexOf('?') !== -1) {
            const str = url.substr(1);
            const strs = str.split('&');
            for (let i = 0; i < strs.length; i++) {
                theRequest[strs[i].split('=')[0]] = unescape(strs[i].split('=')[1]);
            }
        }
        return theRequest;
    }

    // 获取某接口的 所有父target
    function getParentTargetIDs(collection, target_id, parent_ids = []) {
        if (_.isArray(collection)) {
            const item = _.find(collection, _.matchesProperty('target_id', target_id));

            if (item) {
                parent_ids.push(item.parent_id);
                getParentTargetIDs(collection, item.parent_id, parent_ids);
            }
        }

        return parent_ids;
    }

    // 获取某接口的 所有子target
    function getChildrenTargetIDs(collection, target_id, children_ids = []) {
        if (_.isArray(collection)) {
            collection.forEach(item => {
                if (item.parent_id == target_id) {
                    children_ids.push(item.target_id);
                    getChildrenTargetIDs(collection, item.target_id, children_ids);
                }
            })
        }

        return children_ids;
    }

    // // 获取某接口的 所有子target
    // function getChildrenTargetIDs(collection, target_id, children_ids = []) {
    //     if (_.isArray(collection)) {
    //         collection.forEach(item => {
    //             if (item.target_id == target_id) {
    //                 if (item.children && _.isArray(item.children)) {
    //                     item.children.forEach((it) => {
    //                         children_ids.push(it.target_id);
    //                         if (it.children && _.isArray(it.children)) {
    //                             getChildrenTargetIDs(it.children, it.target_id, children_ids);
    //                         }
    //                     })
    //                 }
    //             }
    //         })
    //     }
    //     return children_ids;
    // }

    // 接口数据
    let apipostData = {};

    try {
        apipostData = {"data":{"id":1024404,"local_issue_id":"1244d21bafc1bc23515fc13454aac352","local_target_id":"79c53bee-5903-4ebb-aa90-b5f01e606c89","project_id":2977194,"name":"自定义表单流程引擎","url":"9c546e20c0cbf062","salt":"9e9479d13bbbfbe5","password":"","env_id":"-1","create_time":1679827959,"target_id":-1,"target_type":"folder","expire_days":-1,"expire_time":-1,"portrait":"https:\/\/img.cdn.apipost.cn\/client\/user\/1266485\/avatar\/634e02c2b1a2e.jpeg","nick_name":"张卢","app_web_url":"https:\/\/console-docs.apipost.cn","project_name":"国网-架构组","publisher":"张卢","pub_name":"自定义表单流程引擎","project_logo":"","project":{"vars":{"request":{"cookie":[],"header":[],"query":[],"body":[]},"script":{"pre_script":"","test":"","auth":{"type":"noauth","kv":{"key":"","value":""},"bearer":{"key":""},"basic":{"username":"","password":""}}},"variable":[],"methods":["POST","GET","PUT","PATCH","DELETE","COPY","HEAD","OPTIONS","LINK","UNLINK","PURGE","LOCK","UNLOCK","PROPFIND","VIEW"],"mark":[{"key":"developing","name":"开发中","color":"#3A86FF"},{"key":"complated","name":"已完成","color":"#2BA58F"},{"key":"modifying","name":"需修改","color":"#EC4646"}]}},"children":[{"local_target_id":"79c53bee-5903-4ebb-aa90-b5f01e606c89","local_parent_id":"0","name":"自定义表单流程引擎","method":"POST","mark":"developing","is_doc":0,"target_type":"folder","example_type":"0","project_id":2977194,"status":1,"sort":1,"create_dtime":1679824165,"update_dtime":1679824165,"target_id":"79c53bee-5903-4ebb-aa90-b5f01e606c89","create_time":"2023-03-26 17:49:25","create_users":{"create_user":"张卢","update_user":"张卢"},"color":"#3A86FF","script":{"pre_script":"","switch_pre_script":true,"test":"","switch_test":true},"request":{"description":"","header":[],"query":[],"body":[],"auth":{"type":"noauth","kv":{"key":"","value":""},"bearer":{"key":""},"basic":{"username":"","password":""}}},"parent_id":"0","children":[{"local_target_id":"0fe38088-0094-4270-a5a5-f3204029c4d6","local_parent_id":"79c53bee-5903-4ebb-aa90-b5f01e606c89","name":"turbo","method":"POST","mark":"developing","is_doc":0,"target_type":"folder","example_type":"0","project_id":2977194,"status":1,"sort":1,"create_dtime":1679824175,"update_dtime":1679885929,"target_id":"0fe38088-0094-4270-a5a5-f3204029c4d6","create_time":"2023-03-26 17:49:35","create_users":{"create_user":"张卢","update_user":"张卢"},"color":"#3A86FF","script":{"pre_script":"","switch_pre_script":true,"test":"","switch_test":true},"request":{"description":"","header":[],"query":[],"body":[],"auth":{"type":"noauth","kv":{"key":"","value":""},"bearer":{"key":""},"basic":{"username":"","password":""}}},"parent_id":"79c53bee-5903-4ebb-aa90-b5f01e606c89","children":[{"local_target_id":"e7684fcc-a525-4b0c-b21d-b421d90ac9b5","local_parent_id":"0fe38088-0094-4270-a5a5-f3204029c4d6","name":"表单管理","method":"POST","mark":"developing","is_doc":0,"target_type":"folder","example_type":"0","project_id":2977194,"status":1,"sort":0,"create_dtime":1679886032,"update_dtime":1679886032,"target_id":"e7684fcc-a525-4b0c-b21d-b421d90ac9b5","create_time":"2023-03-27 11:00:32","create_users":{"create_user":"张卢","update_user":"张卢"},"color":"#3A86FF","script":{"pre_script":"","switch_pre_script":true,"test":"","switch_test":true},"request":{"description":"","header":[],"query":[],"body":[],"auth":{"type":"noauth","kv":{"key":"","value":""},"bearer":{"key":""},"basic":{"username":"","password":""}}},"parent_id":"0fe38088-0094-4270-a5a5-f3204029c4d6","children":[{"local_target_id":"9a43e976-d8c4-4516-bd1b-5db4b6460aa5","local_parent_id":"e7684fcc-a525-4b0c-b21d-b421d90ac9b5","name":"分页列表","method":"POST","mark":"developing","is_doc":0,"target_type":"api","example_type":"0","project_id":"72be9d29-e4bb-4a94-9e33-1946477a7597","status":1,"sort":0,"create_dtime":1679899545,"update_dtime":1679899680,"target_id":"9a43e976-d8c4-4516-bd1b-5db4b6460aa5","create_time":"2023-03-27 14:45:45","create_users":{"create_user":"张卢","update_user":"张卢"},"color":"#3A86FF","enable_server_mock":-1,"mock_server_url":"","mock_url":"","new_target_id":"af08aa7b-c6ee-42a9-a6d9-d5bbf3c1a63d","request":{"url":"http:\/\/127.0.0.1:8201\/form-template\/page-list","description":"","body":{"mode":"json","parameter":[],"raw":"{\n    \"current\": 1,\n    \"size\": 10\n}","raw_para":[{"key":"current","value":"1","description":"页码","not_null":1,"field_type":"Integer","type":"Text","is_checked":1},{"key":"size","value":"10","description":"页偏移量","not_null":1,"field_type":"Integer","type":"Text","is_checked":1}]},"event":{"pre_script":"","test":""},"auth":{"type":"noauth","kv":{"key":"","value":""},"bearer":{"key":""},"basic":{"username":"","password":""},"digest":{"username":"","password":"","realm":"","nonce":"","algorithm":"","qop":"","nc":"","cnonce":"","opaque":""},"hawk":{"authId":"","authKey":"","algorithm":"","user":"","nonce":"","extraData":"","app":"","delegation":"","timestamp":"","includePayloadHash":-1},"awsv4":{"accessKey":"","secretKey":"","region":"","service":"","sessionToken":"","addAuthDataToQuery":-1},"ntlm":{"username":"","password":"","domain":"","workstation":"","disableRetryRequest":1},"edgegrid":{"accessToken":"","clientToken":"","clientSecret":"","nonce":"","timestamp":"","baseURi":"","headersToSign":""},"oauth1":{"consumerKey":"","consumerSecret":"","signatureMethod":"","addEmptyParamsToSign":-1,"includeBodyHash":-1,"addParamsToHeader":-1,"realm":"","version":"1.0","nonce":"","timestamp":"","verifier":"","callback":"","tokenSecret":"","token":""}},"header":{"parameter":[]},"query":{"parameter":[]},"cookie":{"parameter":[]},"resful":{"parameter":[]},"url_var":"http:\/\/127.0.0.1:8201\/form-template\/page-list"},"response":{"success":{"raw":"{\n\t\"errCode\": 1000,\n\t\"errMsg\": \"Success\",\n\t\"data\": {\n\t\t\"records\": [\n\t\t\t{\n\t\t\t\t\"id\": 1,\n\t\t\t\t\"name\": \"请假流程\",\n\t\t\t\t\"status\": 1,\n\t\t\t\t\"content\": \"{\\\\\\\"fields\\\\\\\":[{\\\\\\\"__config__\\\\\\\":{\\\\\\\"label\\\\\\\":\\\\\\\"请假天数\\\\\\\",\\\\\\\"labelWidth\\\\\\\":null,\\\\\\\"showLabel\\\\\\\":true,\\\\\\\"changeTag\\\\\\\":true,\\\\\\\"tag\\\\\\\":\\\\\\\"el-input\\\\\\\",\\\\\\\"tagIcon\\\\\\\":\\\\\\\"input\\\\\\\",\\\\\\\"defaultValue\\\\\\\":\\\\\\\"\\\\\\\",\\\\\\\"required\\\\\\\":true,\\\\\\\"layout\\\\\\\":\\\\\\\"colFormItem\\\\\\\",\\\\\\\"span\\\\\\\":24,\\\\\\\"document\\\\\\\":\\\\\\\"https:\/\/element.eleme.cn\/#\/zh-CN\/component\/input\\\\\\\",\\\\\\\"regList\\\\\\\":[]},\\\\\\\"__slot__\\\\\\\":{\\\\\\\"prepend\\\\\\\":\\\\\\\"\\\\\\\",\\\\\\\"append\\\\\\\":\\\\\\\"\\\\\\\"},\\\\\\\"__vModel__\\\\\\\":\\\\\\\"days\\\\\\\",\\\\\\\"placeholder\\\\\\\":\\\\\\\"请输入请假天数\\\\\\\",\\\\\\\"style\\\\\\\":{\\\\\\\"width\\\\\\\":\\\\\\\"100%\\\\\\\"},\\\\\\\"clearable\\\\\\\":true,\\\\\\\"prefix-icon\\\\\\\":\\\\\\\"el-icon-mobile\\\\\\\",\\\\\\\"suffix-icon\\\\\\\":\\\\\\\"\\\\\\\",\\\\\\\"maxlength\\\\\\\":11,\\\\\\\"show-word-limit\\\\\\\":true,\\\\\\\"readonly\\\\\\\":false,\\\\\\\"disabled\\\\\\\":false},{\\\\\\\"__config__\\\\\\\":{\\\\\\\"label\\\\\\\":\\\\\\\"原因\\\\\\\",\\\\\\\"labelWidth\\\\\\\":null,\\\\\\\"showLabel\\\\\\\":true,\\\\\\\"tag\\\\\\\":\\\\\\\"el-input\\\\\\\",\\\\\\\"tagIcon\\\\\\\":\\\\\\\"textarea\\\\\\\",\\\\\\\"required\\\\\\\":true,\\\\\\\"layout\\\\\\\":\\\\\\\"colFormItem\\\\\\\",\\\\\\\"span\\\\\\\":24,\\\\\\\"regList\\\\\\\":[],\\\\\\\"changeTag\\\\\\\":true,\\\\\\\"document\\\\\\\":\\\\\\\"https:\/\/element.eleme.cn\/#\/zh-CN\/component\/input\\\\\\\",\\\\\\\"formId\\\\\\\":101,\\\\\\\"renderKey\\\\\\\":1679811891558},\\\\\\\"type\\\\\\\":\\\\\\\"textarea\\\\\\\",\\\\\\\"placeholder\\\\\\\":\\\\\\\"请输入原因\\\\\\\",\\\\\\\"autosize\\\\\\\":{\\\\\\\"minRows\\\\\\\":4,\\\\\\\"maxRows\\\\\\\":4},\\\\\\\"style\\\\\\\":{\\\\\\\"width\\\\\\\":\\\\\\\"100%\\\\\\\"},\\\\\\\"maxlength\\\\\\\":null,\\\\\\\"show-word-limit\\\\\\\":false,\\\\\\\"readonly\\\\\\\":false,\\\\\\\"disabled\\\\\\\":false,\\\\\\\"__vModel__\\\\\\\":\\\\\\\"description\\\\\\\"}],\\\\\\\"formRef\\\\\\\":\\\\\\\"qjlcbd\\\\\\\",\\\\\\\"formModel\\\\\\\":\\\\\\\"formData\\\\\\\",\\\\\\\"size\\\\\\\":\\\\\\\"medium\\\\\\\",\\\\\\\"labelPosition\\\\\\\":\\\\\\\"right\\\\\\\",\\\\\\\"labelWidth\\\\\\\":100,\\\\\\\"formRules\\\\\\\":\\\\\\\"rules\\\\\\\",\\\\\\\"gutter\\\\\\\":15,\\\\\\\"disabled\\\\\\\":false,\\\\\\\"span\\\\\\\":24,\\\\\\\"formBtns\\\\\\\":true}\"\n\t\t\t}\n\t\t],\n\t\t\"total\": 1,\n\t\t\"size\": 10,\n\t\t\"current\": 1,\n\t\t\"orders\": [],\n\t\t\"searchCount\": true,\n\t\t\"pages\": 1\n\t}\n}","parameter":[{"key":"errCode","value":"1000","description":"1000成功标志，其他都是失败","not_null":1,"field_type":"Integer","type":"Text","is_checked":1},{"key":"errMsg","value":"Success","description":"","not_null":1,"field_type":"String","type":"Text","is_checked":1},{"key":"data","value":"","description":"数据","not_null":1,"field_type":"Object","type":"Text","is_checked":1},{"key":"data.records","value":"","description":"表单模版列表","not_null":1,"field_type":"Array","type":"Text","is_checked":1},{"key":"data.records.id","value":"1","description":"id","not_null":1,"field_type":"Integer","type":"Text","is_checked":1},{"key":"data.records.name","value":"请假流程","description":"表单名称","not_null":1,"field_type":"String","type":"Text","is_checked":1},{"key":"data.records.status","value":"1","description":"状态 0删除；1在用","not_null":1,"field_type":"Integer","type":"Text","is_checked":1},{"key":"data.records.content","value":"{\\\"fields\\\":[{\\\"__config__\\\":{\\\"label\\\":\\\"请假天数\\\",\\\"labelWidth\\\":null,\\\"showLabel\\\":true,\\\"changeTag\\\":true,\\\"tag\\\":\\\"el-input\\\",\\\"tagIcon\\\":\\\"input\\\",\\\"defaultValue\\\":\\\"\\\",\\\"required\\\":true,\\\"layout\\\":\\\"colFormItem\\\",\\\"span\\\":24,\\\"document\\\":\\\"https:\/\/element.eleme.cn\/#\/zh-CN\/component\/input\\\",\\\"regList\\\":[]},\\\"__slot__\\\":{\\\"prepend\\\":\\\"\\\",\\\"append\\\":\\\"\\\"},\\\"__vModel__\\\":\\\"days\\\",\\\"placeholder\\\":\\\"请输入请假天数\\\",\\\"style\\\":{\\\"width\\\":\\\"100%\\\"},\\\"clearable\\\":true,\\\"prefix-icon\\\":\\\"el-icon-mobile\\\",\\\"suffix-icon\\\":\\\"\\\",\\\"maxlength\\\":11,\\\"show-word-limit\\\":true,\\\"readonly\\\":false,\\\"disabled\\\":false},{\\\"__config__\\\":{\\\"label\\\":\\\"原因\\\",\\\"labelWidth\\\":null,\\\"showLabel\\\":true,\\\"tag\\\":\\\"el-input\\\",\\\"tagIcon\\\":\\\"textarea\\\",\\\"required\\\":true,\\\"layout\\\":\\\"colFormItem\\\",\\\"span\\\":24,\\\"regList\\\":[],\\\"changeTag\\\":true,\\\"document\\\":\\\"https:\/\/element.eleme.cn\/#\/zh-CN\/component\/input\\\",\\\"formId\\\":101,\\\"renderKey\\\":1679811891558},\\\"type\\\":\\\"textarea\\\",\\\"placeholder\\\":\\\"请输入原因\\\",\\\"autosize\\\":{\\\"minRows\\\":4,\\\"maxRows\\\":4},\\\"style\\\":{\\\"width\\\":\\\"100%\\\"},\\\"maxlength\\\":null,\\\"show-word-limit\\\":false,\\\"readonly\\\":false,\\\"disabled\\\":false,\\\"__vModel__\\\":\\\"description\\\"}],\\\"formRef\\\":\\\"qjlcbd\\\",\\\"formModel\\\":\\\"formData\\\",\\\"size\\\":\\\"medium\\\",\\\"labelPosition\\\":\\\"right\\\",\\\"labelWidth\\\":100,\\\"formRules\\\":\\\"rules\\\",\\\"gutter\\\":15,\\\"disabled\\\":false,\\\"span\\\":24,\\\"formBtns\\\":true}","description":"模版内容","not_null":1,"field_type":"String","type":"Text","is_checked":1},{"key":"data.total","value":"1","description":"总数","not_null":1,"field_type":"Integer","type":"Text","is_checked":1},{"key":"data.size","value":"10","description":"页偏移量","not_null":1,"field_type":"Integer","type":"Text","is_checked":1},{"key":"data.current","value":"1","description":"页码","not_null":1,"field_type":"Integer","type":"Text","is_checked":1},{"key":"data.orders","value":"","description":"","not_null":1,"field_type":"Array","type":"Text","is_checked":1},{"key":"data.searchCount","value":"true","description":"","not_null":1,"field_type":"Boolean","type":"Text","is_checked":1},{"key":"data.pages","value":"1","description":"","not_null":1,"field_type":"Integer","type":"Text","is_checked":1}],"expect":{"name":"成功","isDefault":1,"code":200,"contentType":"json","verifyType":"schema","schema":[],"mock":""}},"error":{"raw":"","parameter":[],"expect":{"name":"失败","isDefault":-1,"code":404,"contentType":"json","verifyType":"schema","schema":[],"mock":""}}},"parent_id":"e7684fcc-a525-4b0c-b21d-b421d90ac9b5"},{"local_target_id":"7a7c97ee-3936-425f-b910-6a53a645a5e7","local_parent_id":"e7684fcc-a525-4b0c-b21d-b421d90ac9b5","name":"详情","method":"GET","mark":"developing","is_doc":0,"target_type":"api","example_type":"0","project_id":"72be9d29-e4bb-4a94-9e33-1946477a7597","status":1,"sort":1,"create_dtime":1679900054,"update_dtime":1679900077,"target_id":"7a7c97ee-3936-425f-b910-6a53a645a5e7","create_time":"2023-03-27 14:54:14","create_users":{"create_user":"张卢","update_user":"张卢"},"color":"#3A86FF","enable_server_mock":-1,"mock_server_url":"","mock_url":"","new_target_id":"e64f6cd0-6da4-4379-ba7c-dc12b5989799","request":{"url":"http:\/\/127.0.0.1:8201\/form-template\/detail\/1","description":"","body":{"mode":"none","parameter":[],"raw":"{\n    \"id\": 3,\n    \"name\": \"lu-test\",\n    \"content\": \"1111\"\n}","raw_para":[{"key":"id","value":"null","description":"不存在则新增，否则修改","not_null":1,"field_type":"Null","type":"Text","is_checked":1},{"key":"name","value":"lu-test","description":"表单名称","not_null":1,"field_type":"String","type":"Text","is_checked":1},{"key":"content","value":"111","description":"模版内容","not_null":1,"field_type":"String","type":"Text","is_checked":1}]},"event":{"pre_script":"","test":""},"auth":{"type":"noauth","kv":{"key":"","value":""},"bearer":{"key":""},"basic":{"username":"","password":""},"digest":{"username":"","password":"","realm":"","nonce":"","algorithm":"","qop":"","nc":"","cnonce":"","opaque":""},"hawk":{"authId":"","authKey":"","algorithm":"","user":"","nonce":"","extraData":"","app":"","delegation":"","timestamp":"","includePayloadHash":-1},"awsv4":{"accessKey":"","secretKey":"","region":"","service":"","sessionToken":"","addAuthDataToQuery":-1},"ntlm":{"username":"","password":"","domain":"","workstation":"","disableRetryRequest":1},"edgegrid":{"accessToken":"","clientToken":"","clientSecret":"","nonce":"","timestamp":"","baseURi":"","headersToSign":""},"oauth1":{"consumerKey":"","consumerSecret":"","signatureMethod":"","addEmptyParamsToSign":-1,"includeBodyHash":-1,"addParamsToHeader":-1,"realm":"","version":"1.0","nonce":"","timestamp":"","verifier":"","callback":"","tokenSecret":"","token":""}},"header":{"parameter":[]},"query":{"parameter":[]},"cookie":{"parameter":[]},"resful":{"parameter":[]},"url_var":"http:\/\/127.0.0.1:8201\/form-template\/detail\/1"},"response":{"success":{"raw":"{\n\t\"errCode\": 1000,\n\t\"errMsg\": \"Success\",\n\t\"data\": {\n\t\t\"id\": 1,\n\t\t\"name\": \"请假流程\",\n\t\t\"status\": 1,\n\t\t\"content\": \"{\\\\\\\"fields\\\\\\\":[{\\\\\\\"__config__\\\\\\\":{\\\\\\\"label\\\\\\\":\\\\\\\"请假天数\\\\\\\",\\\\\\\"labelWidth\\\\\\\":null,\\\\\\\"showLabel\\\\\\\":true,\\\\\\\"changeTag\\\\\\\":true,\\\\\\\"tag\\\\\\\":\\\\\\\"el-input\\\\\\\",\\\\\\\"tagIcon\\\\\\\":\\\\\\\"input\\\\\\\",\\\\\\\"defaultValue\\\\\\\":\\\\\\\"\\\\\\\",\\\\\\\"required\\\\\\\":true,\\\\\\\"layout\\\\\\\":\\\\\\\"colFormItem\\\\\\\",\\\\\\\"span\\\\\\\":24,\\\\\\\"document\\\\\\\":\\\\\\\"https:\/\/element.eleme.cn\/#\/zh-CN\/component\/input\\\\\\\",\\\\\\\"regList\\\\\\\":[]},\\\\\\\"__slot__\\\\\\\":{\\\\\\\"prepend\\\\\\\":\\\\\\\"\\\\\\\",\\\\\\\"append\\\\\\\":\\\\\\\"\\\\\\\"},\\\\\\\"__vModel__\\\\\\\":\\\\\\\"days\\\\\\\",\\\\\\\"placeholder\\\\\\\":\\\\\\\"请输入请假天数\\\\\\\",\\\\\\\"style\\\\\\\":{\\\\\\\"width\\\\\\\":\\\\\\\"100%\\\\\\\"},\\\\\\\"clearable\\\\\\\":true,\\\\\\\"prefix-icon\\\\\\\":\\\\\\\"el-icon-mobile\\\\\\\",\\\\\\\"suffix-icon\\\\\\\":\\\\\\\"\\\\\\\",\\\\\\\"maxlength\\\\\\\":11,\\\\\\\"show-word-limit\\\\\\\":true,\\\\\\\"readonly\\\\\\\":false,\\\\\\\"disabled\\\\\\\":false},{\\\\\\\"__config__\\\\\\\":{\\\\\\\"label\\\\\\\":\\\\\\\"原因\\\\\\\",\\\\\\\"labelWidth\\\\\\\":null,\\\\\\\"showLabel\\\\\\\":true,\\\\\\\"tag\\\\\\\":\\\\\\\"el-input\\\\\\\",\\\\\\\"tagIcon\\\\\\\":\\\\\\\"textarea\\\\\\\",\\\\\\\"required\\\\\\\":true,\\\\\\\"layout\\\\\\\":\\\\\\\"colFormItem\\\\\\\",\\\\\\\"span\\\\\\\":24,\\\\\\\"regList\\\\\\\":[],\\\\\\\"changeTag\\\\\\\":true,\\\\\\\"document\\\\\\\":\\\\\\\"https:\/\/element.eleme.cn\/#\/zh-CN\/component\/input\\\\\\\",\\\\\\\"formId\\\\\\\":101,\\\\\\\"renderKey\\\\\\\":1679811891558},\\\\\\\"type\\\\\\\":\\\\\\\"textarea\\\\\\\",\\\\\\\"placeholder\\\\\\\":\\\\\\\"请输入原因\\\\\\\",\\\\\\\"autosize\\\\\\\":{\\\\\\\"minRows\\\\\\\":4,\\\\\\\"maxRows\\\\\\\":4},\\\\\\\"style\\\\\\\":{\\\\\\\"width\\\\\\\":\\\\\\\"100%\\\\\\\"},\\\\\\\"maxlength\\\\\\\":null,\\\\\\\"show-word-limit\\\\\\\":false,\\\\\\\"readonly\\\\\\\":false,\\\\\\\"disabled\\\\\\\":false,\\\\\\\"__vModel__\\\\\\\":\\\\\\\"description\\\\\\\"}],\\\\\\\"formRef\\\\\\\":\\\\\\\"qjlcbd\\\\\\\",\\\\\\\"formModel\\\\\\\":\\\\\\\"formData\\\\\\\",\\\\\\\"size\\\\\\\":\\\\\\\"medium\\\\\\\",\\\\\\\"labelPosition\\\\\\\":\\\\\\\"right\\\\\\\",\\\\\\\"labelWidth\\\\\\\":100,\\\\\\\"formRules\\\\\\\":\\\\\\\"rules\\\\\\\",\\\\\\\"gutter\\\\\\\":15,\\\\\\\"disabled\\\\\\\":false,\\\\\\\"span\\\\\\\":24,\\\\\\\"formBtns\\\\\\\":true}\"\n\t}\n}","parameter":[{"key":"errCode","value":"1000","description":"1000成功标志，其他都是失败","not_null":1,"field_type":"Integer","type":"Text","is_checked":1},{"key":"errMsg","value":"Success","description":"","not_null":1,"field_type":"String","type":"Text","is_checked":1},{"key":"data","value":"","description":"结果","not_null":1,"field_type":"Object","type":"Text","is_checked":1},{"key":"data.id","value":"1","description":"不存在则新增，否则修改","not_null":1,"field_type":"Integer","type":"Text","is_checked":1},{"key":"data.name","value":"请假流程","description":"表单名称","not_null":1,"field_type":"String","type":"Text","is_checked":1},{"key":"data.status","value":"1","description":"状态 0删除；1在用","not_null":1,"field_type":"Integer","type":"Text","is_checked":1},{"key":"data.content","value":"{\\\"fields\\\":[{\\\"__config__\\\":{\\\"label\\\":\\\"请假天数\\\",\\\"labelWidth\\\":null,\\\"showLabel\\\":true,\\\"changeTag\\\":true,\\\"tag\\\":\\\"el-input\\\",\\\"tagIcon\\\":\\\"input\\\",\\\"defaultValue\\\":\\\"\\\",\\\"required\\\":true,\\\"layout\\\":\\\"colFormItem\\\",\\\"span\\\":24,\\\"document\\\":\\\"https:\/\/element.eleme.cn\/#\/zh-CN\/component\/input\\\",\\\"regList\\\":[]},\\\"__slot__\\\":{\\\"prepend\\\":\\\"\\\",\\\"append\\\":\\\"\\\"},\\\"__vModel__\\\":\\\"days\\\",\\\"placeholder\\\":\\\"请输入请假天数\\\",\\\"style\\\":{\\\"width\\\":\\\"100%\\\"},\\\"clearable\\\":true,\\\"prefix-icon\\\":\\\"el-icon-mobile\\\",\\\"suffix-icon\\\":\\\"\\\",\\\"maxlength\\\":11,\\\"show-word-limit\\\":true,\\\"readonly\\\":false,\\\"disabled\\\":false},{\\\"__config__\\\":{\\\"label\\\":\\\"原因\\\",\\\"labelWidth\\\":null,\\\"showLabel\\\":true,\\\"tag\\\":\\\"el-input\\\",\\\"tagIcon\\\":\\\"textarea\\\",\\\"required\\\":true,\\\"layout\\\":\\\"colFormItem\\\",\\\"span\\\":24,\\\"regList\\\":[],\\\"changeTag\\\":true,\\\"document\\\":\\\"https:\/\/element.eleme.cn\/#\/zh-CN\/component\/input\\\",\\\"formId\\\":101,\\\"renderKey\\\":1679811891558},\\\"type\\\":\\\"textarea\\\",\\\"placeholder\\\":\\\"请输入原因\\\",\\\"autosize\\\":{\\\"minRows\\\":4,\\\"maxRows\\\":4},\\\"style\\\":{\\\"width\\\":\\\"100%\\\"},\\\"maxlength\\\":null,\\\"show-word-limit\\\":false,\\\"readonly\\\":false,\\\"disabled\\\":false,\\\"__vModel__\\\":\\\"description\\\"}],\\\"formRef\\\":\\\"qjlcbd\\\",\\\"formModel\\\":\\\"formData\\\",\\\"size\\\":\\\"medium\\\",\\\"labelPosition\\\":\\\"right\\\",\\\"labelWidth\\\":100,\\\"formRules\\\":\\\"rules\\\",\\\"gutter\\\":15,\\\"disabled\\\":false,\\\"span\\\":24,\\\"formBtns\\\":true}","description":"模版内容","not_null":1,"field_type":"String","type":"Text","is_checked":1}],"expect":{"name":"成功","isDefault":1,"code":200,"contentType":"json","verifyType":"schema","schema":[],"mock":""}},"error":{"raw":"","parameter":[],"expect":{"name":"失败","isDefault":-1,"code":404,"contentType":"json","verifyType":"schema","schema":[],"mock":""}}},"parent_id":"e7684fcc-a525-4b0c-b21d-b421d90ac9b5"},{"local_target_id":"c6d09eb7-1c1d-4421-95c5-1eb503685cc3","local_parent_id":"e7684fcc-a525-4b0c-b21d-b421d90ac9b5","name":"保存","method":"POST","mark":"developing","is_doc":0,"target_type":"api","example_type":"0","project_id":"72be9d29-e4bb-4a94-9e33-1946477a7597","status":1,"sort":2,"create_dtime":1679899934,"update_dtime":1679900039,"target_id":"c6d09eb7-1c1d-4421-95c5-1eb503685cc3","create_time":"2023-03-27 14:52:14","create_users":{"create_user":"张卢","update_user":"张卢"},"color":"#3A86FF","enable_server_mock":-1,"mock_server_url":"","mock_url":"","new_target_id":"ee41d08e-b588-4070-abd8-ee4905085546","request":{"url":"http:\/\/127.0.0.1:8201\/form-template\/save","description":"","body":{"mode":"json","parameter":[],"raw":"{\n    \"id\": 3,\n    \"name\": \"lu-test\",\n    \"content\": \"1111\"\n}","raw_para":[{"key":"id","value":"null","description":"不存在则新增，否则修改","not_null":1,"field_type":"Null","type":"Text","is_checked":1},{"key":"name","value":"lu-test","description":"表单名称","not_null":1,"field_type":"String","type":"Text","is_checked":1},{"key":"content","value":"111","description":"模版内容","not_null":1,"field_type":"String","type":"Text","is_checked":1}]},"event":{"pre_script":"","test":""},"auth":{"type":"noauth","kv":{"key":"","value":""},"bearer":{"key":""},"basic":{"username":"","password":""},"digest":{"username":"","password":"","realm":"","nonce":"","algorithm":"","qop":"","nc":"","cnonce":"","opaque":""},"hawk":{"authId":"","authKey":"","algorithm":"","user":"","nonce":"","extraData":"","app":"","delegation":"","timestamp":"","includePayloadHash":-1},"awsv4":{"accessKey":"","secretKey":"","region":"","service":"","sessionToken":"","addAuthDataToQuery":-1},"ntlm":{"username":"","password":"","domain":"","workstation":"","disableRetryRequest":1},"edgegrid":{"accessToken":"","clientToken":"","clientSecret":"","nonce":"","timestamp":"","baseURi":"","headersToSign":""},"oauth1":{"consumerKey":"","consumerSecret":"","signatureMethod":"","addEmptyParamsToSign":-1,"includeBodyHash":-1,"addParamsToHeader":-1,"realm":"","version":"1.0","nonce":"","timestamp":"","verifier":"","callback":"","tokenSecret":"","token":""}},"header":{"parameter":[]},"query":{"parameter":[]},"cookie":{"parameter":[]},"resful":{"parameter":[]},"url_var":"http:\/\/127.0.0.1:8201\/form-template\/save"},"response":{"success":{"raw":"{\n\t\"errCode\": 1000,\n\t\"errMsg\": \"Success\",\n\t\"data\": true\n}","parameter":[{"key":"errCode","value":"1000","description":"1000成功标志，其他都是失败","not_null":1,"field_type":"Integer","type":"Text","is_checked":1},{"key":"errMsg","value":"Success","description":"","not_null":1,"field_type":"String","type":"Text","is_checked":1},{"key":"data","value":"true","description":"结果","not_null":1,"field_type":"Boolean","type":"Text","is_checked":1}],"expect":{"name":"成功","isDefault":1,"code":200,"contentType":"json","verifyType":"schema","schema":[],"mock":""}},"error":{"raw":"","parameter":[],"expect":{"name":"失败","isDefault":-1,"code":404,"contentType":"json","verifyType":"schema","schema":[],"mock":""}}},"parent_id":"e7684fcc-a525-4b0c-b21d-b421d90ac9b5"},{"local_target_id":"2c17a063-4765-4f9c-ad2a-f73f927359ac","local_parent_id":"e7684fcc-a525-4b0c-b21d-b421d90ac9b5","name":"删除","method":"POST","mark":"developing","is_doc":0,"target_type":"api","example_type":"0","project_id":"72be9d29-e4bb-4a94-9e33-1946477a7597","status":1,"sort":3,"create_dtime":1679900101,"update_dtime":1679900136,"target_id":"2c17a063-4765-4f9c-ad2a-f73f927359ac","create_time":"2023-03-27 14:55:01","create_users":{"create_user":"张卢","update_user":"张卢"},"color":"#3A86FF","enable_server_mock":-1,"mock_server_url":"","mock_url":"","new_target_id":"965d6923-85ff-4644-9281-e02e6691dd74","request":{"url":"http:\/\/127.0.0.1:8201\/form-template\/delete\/2","description":"","body":{"mode":"none","parameter":[],"raw":"{\n    \"id\": 3,\n    \"name\": \"lu-test\",\n    \"content\": \"1111\"\n}","raw_para":[{"key":"id","value":"null","description":"不存在则新增，否则修改","not_null":1,"field_type":"Null","type":"Text","is_checked":1},{"key":"name","value":"lu-test","description":"表单名称","not_null":1,"field_type":"String","type":"Text","is_checked":1},{"key":"content","value":"111","description":"模版内容","not_null":1,"field_type":"String","type":"Text","is_checked":1}]},"event":{"pre_script":"","test":""},"auth":{"type":"noauth","kv":{"key":"","value":""},"bearer":{"key":""},"basic":{"username":"","password":""},"digest":{"username":"","password":"","realm":"","nonce":"","algorithm":"","qop":"","nc":"","cnonce":"","opaque":""},"hawk":{"authId":"","authKey":"","algorithm":"","user":"","nonce":"","extraData":"","app":"","delegation":"","timestamp":"","includePayloadHash":-1},"awsv4":{"accessKey":"","secretKey":"","region":"","service":"","sessionToken":"","addAuthDataToQuery":-1},"ntlm":{"username":"","password":"","domain":"","workstation":"","disableRetryRequest":1},"edgegrid":{"accessToken":"","clientToken":"","clientSecret":"","nonce":"","timestamp":"","baseURi":"","headersToSign":""},"oauth1":{"consumerKey":"","consumerSecret":"","signatureMethod":"","addEmptyParamsToSign":-1,"includeBodyHash":-1,"addParamsToHeader":-1,"realm":"","version":"1.0","nonce":"","timestamp":"","verifier":"","callback":"","tokenSecret":"","token":""}},"header":{"parameter":[]},"query":{"parameter":[]},"cookie":{"parameter":[]},"resful":{"parameter":[]},"url_var":"http:\/\/127.0.0.1:8201\/form-template\/delete\/2"},"response":{"success":{"raw":"{\n\t\"errCode\": 1000,\n\t\"errMsg\": \"Success\",\n\t\"data\": true\n}","parameter":[{"key":"errCode","value":"1000","description":"1000成功标志，其他都是失败","not_null":1,"field_type":"Integer","type":"Text","is_checked":1},{"key":"errMsg","value":"Success","description":"","not_null":1,"field_type":"String","type":"Text","is_checked":1},{"key":"data","value":"true","description":"结果","not_null":1,"field_type":"Boolean","type":"Text","is_checked":1}],"expect":{"name":"成功","isDefault":1,"code":200,"contentType":"json","verifyType":"schema","schema":[],"mock":""}},"error":{"raw":"","parameter":[],"expect":{"name":"失败","isDefault":-1,"code":404,"contentType":"json","verifyType":"schema","schema":[],"mock":""}}},"parent_id":"e7684fcc-a525-4b0c-b21d-b421d90ac9b5"}]},{"local_target_id":"dff55161-c46e-4469-9bf9-5a35e3a472a6","local_parent_id":"0fe38088-0094-4270-a5a5-f3204029c4d6","name":"流程定义","method":"POST","mark":"developing","is_doc":0,"target_type":"folder","example_type":"0","project_id":2977194,"status":1,"sort":1,"create_dtime":1679885815,"update_dtime":1679885950,"target_id":"dff55161-c46e-4469-9bf9-5a35e3a472a6","create_time":"2023-03-27 10:56:55","create_users":{"create_user":"张卢","update_user":"张卢"},"color":"#3A86FF","script":{"pre_script":"","switch_pre_script":true,"test":"","switch_test":true},"request":{"description":"","header":[],"query":[],"body":[],"auth":{"type":"noauth","kv":{"key":"","value":""},"bearer":{"key":""},"basic":{"username":"","password":""}}},"parent_id":"0fe38088-0094-4270-a5a5-f3204029c4d6","children":[{"local_target_id":"fa0c311c-1c66-4a09-822d-aec0f8d43994","local_parent_id":"dff55161-c46e-4469-9bf9-5a35e3a472a6","name":"获取流程模型列表","method":"POST","mark":"developing","is_doc":0,"target_type":"api","example_type":"0","project_id":"72be9d29-e4bb-4a94-9e33-1946477a7597","status":1,"sort":1,"create_dtime":1679824911,"update_dtime":1679885934,"target_id":"fa0c311c-1c66-4a09-822d-aec0f8d43994","create_time":"2023-03-26 18:01:51","create_users":{"create_user":"张卢","update_user":"张卢"},"color":"#3A86FF","enable_server_mock":-1,"mock_server_url":"","mock_url":"","new_target_id":"aacf3554-b7e4-437e-8bf4-ed9bf152424e","request":{"url":"http:\/\/127.0.0.1:8201\/logicFlow\/queryFlowList","description":"","body":{"mode":"json","parameter":[],"raw":"{\n    \"current\": 1,\n    \"size\": 10,\n    \"flowName\": \"\"\n}","raw_para":[{"key":"current","value":"1","description":"页码","not_null":1,"field_type":"Integer","type":"Text","is_checked":1},{"key":"size","value":"10","description":"页偏移量","not_null":1,"field_type":"Integer","type":"Text","is_checked":1},{"key":"flowName","value":"","description":"流程名称","not_null":-1,"field_type":"String","type":"Text","is_checked":1}]},"event":{"pre_script":"","test":""},"auth":{"type":"noauth","kv":{"key":"","value":""},"bearer":{"key":""},"basic":{"username":"","password":""},"digest":{"username":"","password":"","realm":"","nonce":"","algorithm":"","qop":"","nc":"","cnonce":"","opaque":""},"hawk":{"authId":"","authKey":"","algorithm":"","user":"","nonce":"","extraData":"","app":"","delegation":"","timestamp":"","includePayloadHash":-1},"awsv4":{"accessKey":"","secretKey":"","region":"","service":"","sessionToken":"","addAuthDataToQuery":-1},"ntlm":{"username":"","password":"","domain":"","workstation":"","disableRetryRequest":1},"edgegrid":{"accessToken":"","clientToken":"","clientSecret":"","nonce":"","timestamp":"","baseURi":"","headersToSign":""},"oauth1":{"consumerKey":"","consumerSecret":"","signatureMethod":"","addEmptyParamsToSign":-1,"includeBodyHash":-1,"addParamsToHeader":-1,"realm":"","version":"1.0","nonce":"","timestamp":"","verifier":"","callback":"","tokenSecret":"","token":""}},"header":{"parameter":[]},"query":{"parameter":[]},"cookie":{"parameter":[]},"resful":{"parameter":[]},"url_var":"http:\/\/127.0.0.1:8201\/logicFlow\/queryFlowList"},"response":{"success":{"raw":"{\n\t\"errCode\": 1000,\n\t\"errMsg\": \"Success\",\n\t\"data\": {\n\t\t\"flowModuleList\": [\n\t\t\t{\n\t\t\t\t\"flowModuleId\": \"52dda21b-cbbc-11ed-8f7b-f2d57a4703d9\",\n\t\t\t\t\"flowName\": \"1\",\n\t\t\t\t\"flowKey\": \"1\",\n\t\t\t\t\"status\": 4,\n\t\t\t\t\"remark\": \"\",\n\t\t\t\t\"tenant\": \"testTenant\",\n\t\t\t\t\"caller\": \"testCaller\",\n\t\t\t\t\"operator\": \"1\",\n\t\t\t\t\"modifyTime\": 1679824743000\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"flowModuleId\": \"572d743c-cbbc-11ed-8f7b-f2d57a4703d9\",\n\t\t\t\t\"flowName\": \"1\",\n\t\t\t\t\"flowKey\": \"1\",\n\t\t\t\t\"status\": 1,\n\t\t\t\t\"remark\": \"\",\n\t\t\t\t\"tenant\": \"testTenant\",\n\t\t\t\t\"caller\": \"testCaller\",\n\t\t\t\t\"operator\": \"1\",\n\t\t\t\t\"modifyTime\": 1679824530000\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"flowModuleId\": \"21455a0b-cbac-11ed-9f32-f2d57a4703d9\",\n\t\t\t\t\"flowName\": \"请假\",\n\t\t\t\t\"flowKey\": \"qjlc\",\n\t\t\t\t\"status\": 4,\n\t\t\t\t\"remark\": \"\",\n\t\t\t\t\"tenant\": \"testTenant\",\n\t\t\t\t\"caller\": \"testCaller\",\n\t\t\t\t\"operator\": \"lu\",\n\t\t\t\t\"modifyTime\": 1679822668000\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"flowModuleId\": \"b5affc25-cbb2-11ed-a2f9-f2d57a4703d9\",\n\t\t\t\t\"flowName\": \"请假SOP\",\n\t\t\t\t\"flowKey\": \"person_time\",\n\t\t\t\t\"status\": 4,\n\t\t\t\t\"remark\": \"demo\",\n\t\t\t\t\"tenant\": \"testTenant\",\n\t\t\t\t\"caller\": \"testCaller\",\n\t\t\t\t\"operator\": \"xiaoming\",\n\t\t\t\t\"modifyTime\": 1679820393000\n\t\t\t}\n\t\t],\n\t\t\"current\": 1,\n\t\t\"size\": 10,\n\t\t\"total\": 4\n\t}\n}","parameter":[{"key":"errCode","value":"1000","description":"1000成功标志，其他都是失败","not_null":1,"field_type":"Integer","type":"Text","is_checked":1},{"key":"errMsg","value":"Success","description":"","not_null":1,"field_type":"String","type":"Text","is_checked":1},{"key":"data","value":"","description":"数据","not_null":1,"field_type":"Object","type":"Text","is_checked":1},{"key":"data.flowModuleList","value":"","description":"流程模型列表","not_null":1,"field_type":"Array","type":"Text","is_checked":1},{"key":"data.flowModuleList.flowModuleId","value":"52dda21b-cbbc-11ed-8f7b-f2d57a4703d9","description":"流程模型id","not_null":1,"field_type":"String","type":"Text","is_checked":1},{"key":"data.flowModuleList.flowName","value":"1","description":"流程名称","not_null":1,"field_type":"String","type":"Text","is_checked":1},{"key":"data.flowModuleList.flowKey","value":"1","description":"流程业务标识","not_null":1,"field_type":"String","type":"Text","is_checked":1},{"key":"data.flowModuleList.status","value":"4","description":"状态(1.初始态 2.编辑中 3.已下线)","not_null":1,"field_type":"Integer","type":"Text","is_checked":1},{"key":"data.flowModuleList.remark","value":"","description":"备注","not_null":1,"field_type":"String","type":"Text","is_checked":1},{"key":"data.flowModuleList.tenant","value":"testTenant","description":"租户","not_null":1,"field_type":"String","type":"Text","is_checked":1},{"key":"data.flowModuleList.caller","value":"testCaller","description":"调用方","not_null":1,"field_type":"String","type":"Text","is_checked":1},{"key":"data.flowModuleList.operator","value":"1","description":"操作人","not_null":1,"field_type":"String","type":"Text","is_checked":1},{"key":"data.flowModuleList.modifyTime","value":"1679824743000","description":"更新时间","not_null":1,"field_type":"Integer","type":"Text","is_checked":1},{"key":"data.current","value":"1","description":"页码","not_null":1,"field_type":"Integer","type":"Text","is_checked":1},{"key":"data.size","value":"10","description":"页偏移量","not_null":1,"field_type":"Integer","type":"Text","is_checked":1},{"key":"data.total","value":"4","description":"总数","not_null":1,"field_type":"Integer","type":"Text","is_checked":1}],"expect":{"name":"成功","isDefault":1,"code":200,"contentType":"json","verifyType":"schema","schema":[],"mock":""}},"error":{"raw":"","parameter":[],"expect":{"name":"失败","isDefault":-1,"code":404,"contentType":"json","verifyType":"schema","schema":[],"mock":""}}},"parent_id":"dff55161-c46e-4469-9bf9-5a35e3a472a6"},{"local_target_id":"8e981081-5e13-4d66-bae8-789d2dda1602","local_parent_id":"dff55161-c46e-4469-9bf9-5a35e3a472a6","name":"查询流程","method":"POST","mark":"developing","is_doc":0,"target_type":"api","example_type":"0","project_id":"72be9d29-e4bb-4a94-9e33-1946477a7597","status":1,"sort":2,"create_dtime":1679825160,"update_dtime":1679885937,"target_id":"8e981081-5e13-4d66-bae8-789d2dda1602","create_time":"2023-03-26 18:06:00","create_users":{"create_user":"张卢","update_user":"张卢"},"color":"#3A86FF","enable_server_mock":-1,"mock_server_url":"","mock_url":"","new_target_id":"7c5f7ca0-3a03-4312-b6ce-1b32f8b06937","request":{"url":"http:\/\/127.0.0.1:8201\/logicFlow\/queryFlow","description":"","body":{"mode":"json","parameter":[],"raw":"{\n    \"flowModuleId\": \"52dda21b-cbbc-11ed-8f7b-f2d57a4703d9\"\n}","raw_para":[{"key":"flowModuleId","value":"52dda21b-cbbc-11ed-8f7b-f2d57a4703d9","description":"流程模型id","not_null":1,"field_type":"String","type":"Text","is_checked":1}]},"event":{"pre_script":"","test":""},"auth":{"type":"noauth","kv":{"key":"","value":""},"bearer":{"key":""},"basic":{"username":"","password":""},"digest":{"username":"","password":"","realm":"","nonce":"","algorithm":"","qop":"","nc":"","cnonce":"","opaque":""},"hawk":{"authId":"","authKey":"","algorithm":"","user":"","nonce":"","extraData":"","app":"","delegation":"","timestamp":"","includePayloadHash":-1},"awsv4":{"accessKey":"","secretKey":"","region":"","service":"","sessionToken":"","addAuthDataToQuery":-1},"ntlm":{"username":"","password":"","domain":"","workstation":"","disableRetryRequest":1},"edgegrid":{"accessToken":"","clientToken":"","clientSecret":"","nonce":"","timestamp":"","baseURi":"","headersToSign":""},"oauth1":{"consumerKey":"","consumerSecret":"","signatureMethod":"","addEmptyParamsToSign":-1,"includeBodyHash":-1,"addParamsToHeader":-1,"realm":"","version":"1.0","nonce":"","timestamp":"","verifier":"","callback":"","tokenSecret":"","token":""}},"header":{"parameter":[]},"query":{"parameter":[]},"cookie":{"parameter":[]},"resful":{"parameter":[]},"url_var":"http:\/\/127.0.0.1:8201\/logicFlow\/queryFlow"},"response":{"success":{"raw":"{\n\t\"errCode\": 1000,\n\t\"errMsg\": \"Success\",\n\t\"data\": {\n\t\t\"flowModuleId\": \"52dda21b-cbbc-11ed-8f7b-f2d57a4703d9\",\n\t\t\"flowName\": \"1\",\n\t\t\"flowKey\": \"1\",\n\t\t\"status\": 1,\n\t\t\"remark\": \"\",\n\t\t\"tenant\": \"testTenant\",\n\t\t\"caller\": \"testCaller\",\n\t\t\"operator\": \"1\",\n\t\t\"modifyTime\": 1679824743000,\n\t\t\"flowModel\": \"{\\\"flowElementList\\\":[{\\\"incoming\\\":[],\\\"outgoing\\\":[\\\"Flow_2vt8fu5\\\"],\\\"dockers\\\":[],\\\"type\\\":2,\\\"properties\\\":{\\\"name\\\":\\\"开始\\\",\\\"x\\\":310,\\\"y\\\":280,\\\"text\\\":{\\\"x\\\":310,\\\"y\\\":320,\\\"value\\\":\\\"开始\\\"}},\\\"key\\\":\\\"Event_2956maj\\\"},{\\\"incoming\\\":[\\\"Flow_2vt8fu5\\\"],\\\"outgoing\\\":[\\\"Flow_2nvgi3q\\\"],\\\"dockers\\\":[],\\\"type\\\":4,\\\"properties\\\":{\\\"name\\\":\\\"\\\",\\\"x\\\":560,\\\"y\\\":300,\\\"text\\\":\\\"\\\"},\\\"key\\\":\\\"Activity_1uiit3v\\\"},{\\\"incoming\\\":[\\\"Flow_2nvgi3q\\\"],\\\"outgoing\\\":[],\\\"dockers\\\":[],\\\"type\\\":3,\\\"properties\\\":{\\\"name\\\":\\\"结束\\\",\\\"x\\\":890,\\\"y\\\":320,\\\"text\\\":{\\\"x\\\":890,\\\"y\\\":360,\\\"value\\\":\\\"结束\\\"}},\\\"key\\\":\\\"Event_28evir1\\\"},{\\\"incoming\\\":[\\\"Event_2956maj\\\"],\\\"outgoing\\\":[\\\"Activity_1uiit3v\\\"],\\\"type\\\":1,\\\"dockers\\\":[],\\\"properties\\\":{\\\"name\\\":\\\"\\\",\\\"text\\\":\\\"\\\",\\\"startPoint\\\":\\\"{\\\\\\\"x\\\\\\\":328,\\\\\\\"y\\\\\\\":280}\\\",\\\"endPoint\\\":\\\"{\\\\\\\"x\\\\\\\":510,\\\\\\\"y\\\\\\\":300}\\\",\\\"pointsList\\\":\\\"[{\\\\\\\"x\\\\\\\":328,\\\\\\\"y\\\\\\\":280},{\\\\\\\"x\\\\\\\":419,\\\\\\\"y\\\\\\\":280},{\\\\\\\"x\\\\\\\":419,\\\\\\\"y\\\\\\\":300},{\\\\\\\"x\\\\\\\":510,\\\\\\\"y\\\\\\\":300}]\\\"},\\\"key\\\":\\\"Flow_2vt8fu5\\\"},{\\\"incoming\\\":[\\\"Activity_1uiit3v\\\"],\\\"outgoing\\\":[\\\"Event_28evir1\\\"],\\\"type\\\":1,\\\"dockers\\\":[],\\\"properties\\\":{\\\"name\\\":\\\"\\\",\\\"text\\\":\\\"\\\",\\\"startPoint\\\":\\\"{\\\\\\\"x\\\\\\\":610,\\\\\\\"y\\\\\\\":300}\\\",\\\"endPoint\\\":\\\"{\\\\\\\"x\\\\\\\":872,\\\\\\\"y\\\\\\\":320}\\\",\\\"pointsList\\\":\\\"[{\\\\\\\"x\\\\\\\":610,\\\\\\\"y\\\\\\\":300},{\\\\\\\"x\\\\\\\":741,\\\\\\\"y\\\\\\\":300},{\\\\\\\"x\\\\\\\":741,\\\\\\\"y\\\\\\\":320},{\\\\\\\"x\\\\\\\":872,\\\\\\\"y\\\\\\\":320}]\\\"},\\\"key\\\":\\\"Flow_2nvgi3q\\\"}]}\"\n\t}\n}","parameter":[{"key":"errCode","value":"1000","description":"1000成功标志，其他都是失败","not_null":1,"field_type":"Integer","type":"Text","is_checked":1},{"key":"errMsg","value":"Success","description":"","not_null":1,"field_type":"String","type":"Text","is_checked":1},{"key":"data","value":"","description":"数据","not_null":1,"field_type":"Object","type":"Text","is_checked":1},{"key":"data.flowModuleId","value":"52dda21b-cbbc-11ed-8f7b-f2d57a4703d9","description":"流程模型id","not_null":1,"field_type":"String","type":"Text","is_checked":1},{"key":"data.flowName","value":"1","description":"流程名称","not_null":1,"field_type":"String","type":"Text","is_checked":1},{"key":"data.flowKey","value":"1","description":"流程业务标识","not_null":1,"field_type":"String","type":"Text","is_checked":1},{"key":"data.status","value":"1","description":"状态(1.初始态 2.编辑中 3.已下线)","not_null":1,"field_type":"Integer","type":"Text","is_checked":1},{"key":"data.remark","value":"","description":"备注","not_null":1,"field_type":"String","type":"Text","is_checked":1},{"key":"data.tenant","value":"testTenant","description":"租户","not_null":1,"field_type":"String","type":"Text","is_checked":1},{"key":"data.caller","value":"testCaller","description":"调用方","not_null":1,"field_type":"String","type":"Text","is_checked":1},{"key":"data.operator","value":"1","description":"操作人","not_null":1,"field_type":"String","type":"Text","is_checked":1},{"key":"data.modifyTime","value":"1679824743000","description":"更新时间","not_null":1,"field_type":"Integer","type":"Text","is_checked":1},{"key":"data.flowModel","value":"{\"flowElementList\":[{\"incoming\":[],\"outgoing\":[\"Flow_2vt8fu5\"],\"dockers\":[],\"type\":2,\"properties\":{\"name\":\"开始\",\"x\":310,\"y\":280,\"text\":{\"x\":310,\"y\":320,\"value\":\"开始\"}},\"key\":\"Event_2956maj\"},{\"incoming\":[\"Flow_2vt8fu5\"],\"outgoing\":[\"Flow_2nvgi3q\"],\"dockers\":[],\"type\":4,\"properties\":{\"name\":\"\",\"x\":560,\"y\":300,\"text\":\"\"},\"key\":\"Activity_1uiit3v\"},{\"incoming\":[\"Flow_2nvgi3q\"],\"outgoing\":[],\"dockers\":[],\"type\":3,\"properties\":{\"name\":\"结束\",\"x\":890,\"y\":320,\"text\":{\"x\":890,\"y\":360,\"value\":\"结束\"}},\"key\":\"Event_28evir1\"},{\"incoming\":[\"Event_2956maj\"],\"outgoing\":[\"Activity_1uiit3v\"],\"type\":1,\"dockers\":[],\"properties\":{\"name\":\"\",\"text\":\"\",\"startPoint\":\"{\\\"x\\\":328,\\\"y\\\":280}\",\"endPoint\":\"{\\\"x\\\":510,\\\"y\\\":300}\",\"pointsList\":\"[{\\\"x\\\":328,\\\"y\\\":280},{\\\"x\\\":419,\\\"y\\\":280},{\\\"x\\\":419,\\\"y\\\":300},{\\\"x\\\":510,\\\"y\\\":300}]\"},\"key\":\"Flow_2vt8fu5\"},{\"incoming\":[\"Activity_1uiit3v\"],\"outgoing\":[\"Event_28evir1\"],\"type\":1,\"dockers\":[],\"properties\":{\"name\":\"\",\"text\":\"\",\"startPoint\":\"{\\\"x\\\":610,\\\"y\\\":300}\",\"endPoint\":\"{\\\"x\\\":872,\\\"y\\\":320}\",\"pointsList\":\"[{\\\"x\\\":610,\\\"y\\\":300},{\\\"x\\\":741,\\\"y\\\":300},{\\\"x\\\":741,\\\"y\\\":320},{\\\"x\\\":872,\\\"y\\\":320}]\"},\"key\":\"Flow_2nvgi3q\"}]}","description":"流程模型数据","not_null":1,"field_type":"String","type":"Text","is_checked":1}],"expect":{"name":"成功","isDefault":1,"code":200,"contentType":"json","verifyType":"schema","schema":[],"mock":""}},"error":{"raw":"","parameter":[],"expect":{"name":"失败","isDefault":-1,"code":404,"contentType":"json","verifyType":"schema","schema":[],"mock":""}}},"parent_id":"dff55161-c46e-4469-9bf9-5a35e3a472a6"},{"local_target_id":"a51217cc-80f4-441e-bfd8-dc5a751d5ae7","local_parent_id":"dff55161-c46e-4469-9bf9-5a35e3a472a6","name":"创建流程","method":"POST","mark":"developing","is_doc":0,"target_type":"api","example_type":"0","project_id":"72be9d29-e4bb-4a94-9e33-1946477a7597","status":1,"sort":3,"create_dtime":1679824493,"update_dtime":1679885930,"target_id":"a51217cc-80f4-441e-bfd8-dc5a751d5ae7","create_time":"2023-03-26 17:54:53","create_users":{"create_user":"张卢","update_user":"张卢"},"color":"#3A86FF","enable_server_mock":-1,"mock_server_url":"","mock_url":"","new_target_id":"8146bd78-e67e-42e8-bba8-68a6986133ad","request":{"url":"http:\/\/127.0.0.1:8201\/logicFlow\/createFlow","description":"","body":{"mode":"json","parameter":[],"raw":"{\n    \"flowKey\": \"1\",\n    \"flowName\": \"1\",\n    \"operator\": \"1\"\n}","raw_para":[{"key":"flowKey","value":"qjlc","description":"","not_null":1,"field_type":"String","type":"Text","is_checked":1},{"key":"flowName","value":"请假流程","description":"","not_null":1,"field_type":"String","type":"Text","is_checked":1},{"key":"operator","value":"操作人","description":"","not_null":1,"field_type":"String","type":"Text","is_checked":1}]},"event":{"pre_script":"","test":""},"auth":{"type":"noauth","kv":{"key":"","value":""},"bearer":{"key":""},"basic":{"username":"","password":""},"digest":{"username":"","password":"","realm":"","nonce":"","algorithm":"","qop":"","nc":"","cnonce":"","opaque":""},"hawk":{"authId":"","authKey":"","algorithm":"","user":"","nonce":"","extraData":"","app":"","delegation":"","timestamp":"","includePayloadHash":-1},"awsv4":{"accessKey":"","secretKey":"","region":"","service":"","sessionToken":"","addAuthDataToQuery":-1},"ntlm":{"username":"","password":"","domain":"","workstation":"","disableRetryRequest":1},"edgegrid":{"accessToken":"","clientToken":"","clientSecret":"","nonce":"","timestamp":"","baseURi":"","headersToSign":""},"oauth1":{"consumerKey":"","consumerSecret":"","signatureMethod":"","addEmptyParamsToSign":-1,"includeBodyHash":-1,"addParamsToHeader":-1,"realm":"","version":"1.0","nonce":"","timestamp":"","verifier":"","callback":"","tokenSecret":"","token":""}},"header":{"parameter":[]},"query":{"parameter":[]},"cookie":{"parameter":[]},"resful":{"parameter":[]},"url_var":"http:\/\/127.0.0.1:8201\/logicFlow\/createFlow"},"response":{"success":{"raw":"{\n\t\"errCode\": 1000,\n\t\"errMsg\": \"Success\",\n\t\"data\": {\n\t\t\"flowModuleId\": \"572d743c-cbbc-11ed-8f7b-f2d57a4703d9\"\n\t}\n}","parameter":[{"key":"errCode","value":"1000","description":"1000成功标志，其他都是失败","not_null":1,"field_type":"Integer","type":"Text","is_checked":1},{"key":"errMsg","value":"Success","description":"","not_null":1,"field_type":"String","type":"Text","is_checked":1},{"key":"data","value":"","description":"","not_null":1,"field_type":"Object","type":"Text","is_checked":1},{"key":"data.flowModuleId","value":"572d743c-cbbc-11ed-8f7b-f2d57a4703d9","description":"流程模型id","not_null":1,"field_type":"String","type":"Text","is_checked":1}],"expect":{"name":"成功","isDefault":1,"code":200,"contentType":"json","verifyType":"schema","schema":[],"mock":""}},"error":{"raw":"","parameter":[],"expect":{"name":"失败","isDefault":-1,"code":404,"contentType":"json","verifyType":"schema","schema":[],"mock":""}}},"parent_id":"dff55161-c46e-4469-9bf9-5a35e3a472a6"},{"local_target_id":"9523c40c-41f4-4808-a462-6bade563c695","local_parent_id":"dff55161-c46e-4469-9bf9-5a35e3a472a6","name":"保存流程模型数据","method":"POST","mark":"developing","is_doc":0,"target_type":"api","example_type":"0","project_id":"72be9d29-e4bb-4a94-9e33-1946477a7597","status":1,"sort":4,"create_dtime":1679824708,"update_dtime":1679885932,"target_id":"9523c40c-41f4-4808-a462-6bade563c695","create_time":"2023-03-26 17:58:28","create_users":{"create_user":"张卢","update_user":"张卢"},"color":"#3A86FF","enable_server_mock":-1,"mock_server_url":"","mock_url":"","new_target_id":"2118382d-9d94-41de-b912-52212f6d9c20","request":{"url":"http:\/\/127.0.0.1:8201\/logicFlow\/saveFlowModel","description":"","body":{"mode":"json","parameter":[],"raw":"{\n    \"flowModel\": \"{\\\"flowElementList\\\":[{\\\"incoming\\\":[],\\\"outgoing\\\":[\\\"Flow_0eu79q6\\\"],\\\"dockers\\\":[],\\\"type\\\":2,\\\"properties\\\":{\\\"name\\\":\\\"开始\\\",\\\"form_template_id\\\":1,\\\"x\\\":300,\\\"y\\\":290,\\\"text\\\":{\\\"x\\\":300,\\\"y\\\":330,\\\"value\\\":\\\"开始\\\"}},\\\"key\\\":\\\"Event_25k767c\\\"},{\\\"incoming\\\":[\\\"Flow_0eu79q6\\\"],\\\"outgoing\\\":[\\\"Flow_14n523u\\\"],\\\"dockers\\\":[],\\\"type\\\":4,\\\"properties\\\":{\\\"name\\\":\\\"\\\",\\\"form_template_id\\\":1,\\\"x\\\":580,\\\"y\\\":290,\\\"text\\\":\\\"\\\"},\\\"key\\\":\\\"Activity_0dk2jeq\\\"},{\\\"incoming\\\":[\\\"Flow_14n523u\\\"],\\\"outgoing\\\":[\\\"Flow_2uqrncs\\\",\\\"Flow_09vnmg6\\\"],\\\"dockers\\\":[],\\\"type\\\":6,\\\"properties\\\":{\\\"name\\\":\\\"\\\",\\\"x\\\":850,\\\"y\\\":290,\\\"text\\\":\\\"\\\"},\\\"key\\\":\\\"Gateway_1rmsfmn\\\"},{\\\"incoming\\\":[\\\"Flow_2uqrncs\\\"],\\\"outgoing\\\":[\\\"Flow_13k9h85\\\"],\\\"dockers\\\":[],\\\"type\\\":4,\\\"properties\\\":{\\\"name\\\":\\\"\\\",\\\"form_template_id\\\":1,\\\"x\\\":1120,\\\"y\\\":170,\\\"text\\\":\\\"\\\"},\\\"key\\\":\\\"Activity_1sfrdrs\\\"},{\\\"incoming\\\":[\\\"Flow_09vnmg6\\\"],\\\"outgoing\\\":[\\\"Flow_3rvcjpo\\\"],\\\"dockers\\\":[],\\\"type\\\":4,\\\"properties\\\":{\\\"name\\\":\\\"\\\",\\\"form_template_id\\\":1,\\\"x\\\":1120,\\\"y\\\":450,\\\"text\\\":\\\"\\\"},\\\"key\\\":\\\"Activity_023n6cl\\\"},{\\\"incoming\\\":[\\\"Flow_13k9h85\\\",\\\"Flow_3rvcjpo\\\"],\\\"outgoing\\\":[],\\\"dockers\\\":[],\\\"type\\\":3,\\\"properties\\\":{\\\"name\\\":\\\"结束\\\",\\\"x\\\":1410,\\\"y\\\":310,\\\"text\\\":{\\\"x\\\":1410,\\\"y\\\":350,\\\"value\\\":\\\"结束\\\"}},\\\"key\\\":\\\"Event_0s5lf6d\\\"},{\\\"incoming\\\":[\\\"Event_25k767c\\\"],\\\"outgoing\\\":[\\\"Activity_0dk2jeq\\\"],\\\"type\\\":1,\\\"dockers\\\":[],\\\"properties\\\":{\\\"name\\\":\\\"\\\",\\\"text\\\":\\\"\\\",\\\"startPoint\\\":\\\"{\\\\\\\"x\\\\\\\":318,\\\\\\\"y\\\\\\\":290}\\\",\\\"endPoint\\\":\\\"{\\\\\\\"x\\\\\\\":530,\\\\\\\"y\\\\\\\":290}\\\",\\\"pointsList\\\":\\\"[{\\\\\\\"x\\\\\\\":318,\\\\\\\"y\\\\\\\":290},{\\\\\\\"x\\\\\\\":530,\\\\\\\"y\\\\\\\":290}]\\\"},\\\"key\\\":\\\"Flow_0eu79q6\\\"},{\\\"incoming\\\":[\\\"Activity_0dk2jeq\\\"],\\\"outgoing\\\":[\\\"Gateway_1rmsfmn\\\"],\\\"type\\\":1,\\\"dockers\\\":[],\\\"properties\\\":{\\\"name\\\":\\\"\\\",\\\"text\\\":\\\"\\\",\\\"startPoint\\\":\\\"{\\\\\\\"x\\\\\\\":630,\\\\\\\"y\\\\\\\":290}\\\",\\\"endPoint\\\":\\\"{\\\\\\\"x\\\\\\\":825,\\\\\\\"y\\\\\\\":290}\\\",\\\"pointsList\\\":\\\"[{\\\\\\\"x\\\\\\\":630,\\\\\\\"y\\\\\\\":290},{\\\\\\\"x\\\\\\\":825,\\\\\\\"y\\\\\\\":290}]\\\"},\\\"key\\\":\\\"Flow_14n523u\\\"},{\\\"incoming\\\":[\\\"Gateway_1rmsfmn\\\"],\\\"outgoing\\\":[\\\"Activity_1sfrdrs\\\"],\\\"type\\\":1,\\\"dockers\\\":[],\\\"properties\\\":{\\\"name\\\":\\\"\\\",\\\"defaultConditions\\\":\\\"false\\\",\\\"conditionsequenceflow\\\":\\\"days<=3\\\",\\\"text\\\":\\\"\\\",\\\"startPoint\\\":\\\"{\\\\\\\"x\\\\\\\":874,\\\\\\\"y\\\\\\\":289}\\\",\\\"endPoint\\\":\\\"{\\\\\\\"x\\\\\\\":1070,\\\\\\\"y\\\\\\\":170}\\\",\\\"pointsList\\\":\\\"[{\\\\\\\"x\\\\\\\":874,\\\\\\\"y\\\\\\\":289},{\\\\\\\"x\\\\\\\":905,\\\\\\\"y\\\\\\\":289},{\\\\\\\"x\\\\\\\":905,\\\\\\\"y\\\\\\\":170},{\\\\\\\"x\\\\\\\":1070,\\\\\\\"y\\\\\\\":170}]\\\"},\\\"key\\\":\\\"Flow_2uqrncs\\\"},{\\\"incoming\\\":[\\\"Gateway_1rmsfmn\\\"],\\\"outgoing\\\":[\\\"Activity_023n6cl\\\"],\\\"type\\\":1,\\\"dockers\\\":[],\\\"properties\\\":{\\\"name\\\":\\\"\\\",\\\"defaultConditions\\\":\\\"false\\\",\\\"conditionsequenceflow\\\":\\\"days>3\\\",\\\"text\\\":\\\"\\\",\\\"startPoint\\\":\\\"{\\\\\\\"x\\\\\\\":875,\\\\\\\"y\\\\\\\":290}\\\",\\\"endPoint\\\":\\\"{\\\\\\\"x\\\\\\\":1070,\\\\\\\"y\\\\\\\":450}\\\",\\\"pointsList\\\":\\\"[{\\\\\\\"x\\\\\\\":875,\\\\\\\"y\\\\\\\":290},{\\\\\\\"x\\\\\\\":906,\\\\\\\"y\\\\\\\":290},{\\\\\\\"x\\\\\\\":906,\\\\\\\"y\\\\\\\":450},{\\\\\\\"x\\\\\\\":1070,\\\\\\\"y\\\\\\\":450}]\\\"},\\\"key\\\":\\\"Flow_09vnmg6\\\"},{\\\"incoming\\\":[\\\"Activity_1sfrdrs\\\"],\\\"outgoing\\\":[\\\"Event_0s5lf6d\\\"],\\\"type\\\":1,\\\"dockers\\\":[],\\\"properties\\\":{\\\"name\\\":\\\"\\\",\\\"text\\\":\\\"\\\",\\\"startPoint\\\":\\\"{\\\\\\\"x\\\\\\\":1170,\\\\\\\"y\\\\\\\":170}\\\",\\\"endPoint\\\":\\\"{\\\\\\\"x\\\\\\\":1392,\\\\\\\"y\\\\\\\":310}\\\",\\\"pointsList\\\":\\\"[{\\\\\\\"x\\\\\\\":1170,\\\\\\\"y\\\\\\\":170},{\\\\\\\"x\\\\\\\":1200,\\\\\\\"y\\\\\\\":170},{\\\\\\\"x\\\\\\\":1200,\\\\\\\"y\\\\\\\":310},{\\\\\\\"x\\\\\\\":1392,\\\\\\\"y\\\\\\\":310}]\\\"},\\\"key\\\":\\\"Flow_13k9h85\\\"},{\\\"incoming\\\":[\\\"Activity_023n6cl\\\"],\\\"outgoing\\\":[\\\"Event_0s5lf6d\\\"],\\\"type\\\":1,\\\"dockers\\\":[],\\\"properties\\\":{\\\"name\\\":\\\"\\\",\\\"text\\\":\\\"\\\",\\\"startPoint\\\":\\\"{\\\\\\\"x\\\\\\\":1170,\\\\\\\"y\\\\\\\":450}\\\",\\\"endPoint\\\":\\\"{\\\\\\\"x\\\\\\\":1392,\\\\\\\"y\\\\\\\":310}\\\",\\\"pointsList\\\":\\\"[{\\\\\\\"x\\\\\\\":1170,\\\\\\\"y\\\\\\\":450},{\\\\\\\"x\\\\\\\":1200,\\\\\\\"y\\\\\\\":450},{\\\\\\\"x\\\\\\\":1200,\\\\\\\"y\\\\\\\":310},{\\\\\\\"x\\\\\\\":1392,\\\\\\\"y\\\\\\\":310}]\\\"},\\\"key\\\":\\\"Flow_3rvcjpo\\\"}]}\",\n    \"flowModuleId\": \"21455a0b-cbac-11ed-9f32-f2d57a4703d9\"\n}","raw_para":[{"key":"flowModel","value":"{\"flowElementList\":[{\"incoming\":[],\"outgoing\":[\"Flow_2vt8fu5\"],\"dockers\":[],\"type\":2,\"properties\":{\"name\":\"开始\",\"x\":310,\"y\":280,\"text\":{\"x\":310,\"y\":320,\"value\":\"开始\"}},\"key\":\"Event_2956maj\"},{\"incoming\":[\"Flow_2vt8fu5\"],\"outgoing\":[\"Flow_2nvgi3q\"],\"dockers\":[],\"type\":4,\"properties\":{\"name\":\"\",\"x\":560,\"y\":300,\"text\":\"\"},\"key\":\"Activity_1uiit3v\"},{\"incoming\":[\"Flow_2nvgi3q\"],\"outgoing\":[],\"dockers\":[],\"type\":3,\"properties\":{\"name\":\"结束\",\"x\":890,\"y\":320,\"text\":{\"x\":890,\"y\":360,\"value\":\"结束\"}},\"key\":\"Event_28evir1\"},{\"incoming\":[\"Event_2956maj\"],\"outgoing\":[\"Activity_1uiit3v\"],\"type\":1,\"dockers\":[],\"properties\":{\"name\":\"\",\"text\":\"\",\"startPoint\":\"{\\\"x\\\":328,\\\"y\\\":280}\",\"endPoint\":\"{\\\"x\\\":510,\\\"y\\\":300}\",\"pointsList\":\"[{\\\"x\\\":328,\\\"y\\\":280},{\\\"x\\\":419,\\\"y\\\":280},{\\\"x\\\":419,\\\"y\\\":300},{\\\"x\\\":510,\\\"y\\\":300}]\"},\"key\":\"Flow_2vt8fu5\"},{\"incoming\":[\"Activity_1uiit3v\"],\"outgoing\":[\"Event_28evir1\"],\"type\":1,\"dockers\":[],\"properties\":{\"name\":\"\",\"text\":\"\",\"startPoint\":\"{\\\"x\\\":610,\\\"y\\\":300}\",\"endPoint\":\"{\\\"x\\\":872,\\\"y\\\":320}\",\"pointsList\":\"[{\\\"x\\\":610,\\\"y\\\":300},{\\\"x\\\":741,\\\"y\\\":300},{\\\"x\\\":741,\\\"y\\\":320},{\\\"x\\\":872,\\\"y\\\":320}]\"},\"key\":\"Flow_2nvgi3q\"}]}","description":"流程模型数据","not_null":1,"field_type":"String","type":"Text","is_checked":1},{"key":"flowModuleId","value":"52dda21b-cbbc-11ed-8f7b-f2d57a4703d9","description":"流程模型id","not_null":1,"field_type":"String","type":"Text","is_checked":1}]},"event":{"pre_script":"","test":""},"auth":{"type":"noauth","kv":{"key":"","value":""},"bearer":{"key":""},"basic":{"username":"","password":""},"digest":{"username":"","password":"","realm":"","nonce":"","algorithm":"","qop":"","nc":"","cnonce":"","opaque":""},"hawk":{"authId":"","authKey":"","algorithm":"","user":"","nonce":"","extraData":"","app":"","delegation":"","timestamp":"","includePayloadHash":-1},"awsv4":{"accessKey":"","secretKey":"","region":"","service":"","sessionToken":"","addAuthDataToQuery":-1},"ntlm":{"username":"","password":"","domain":"","workstation":"","disableRetryRequest":1},"edgegrid":{"accessToken":"","clientToken":"","clientSecret":"","nonce":"","timestamp":"","baseURi":"","headersToSign":""},"oauth1":{"consumerKey":"","consumerSecret":"","signatureMethod":"","addEmptyParamsToSign":-1,"includeBodyHash":-1,"addParamsToHeader":-1,"realm":"","version":"1.0","nonce":"","timestamp":"","verifier":"","callback":"","tokenSecret":"","token":""}},"header":{"parameter":[]},"query":{"parameter":[]},"cookie":{"parameter":[]},"resful":{"parameter":[]},"url_var":"http:\/\/127.0.0.1:8201\/logicFlow\/saveFlowModel"},"response":{"success":{"raw":"{\n\t\"errCode\": 1000,\n\t\"errMsg\": \"Success\",\n\t\"data\": null\n}","parameter":[{"key":"errCode","value":"1000","description":"1000成功标志，其他都是失败","not_null":1,"field_type":"Integer","type":"Text","is_checked":1},{"key":"errMsg","value":"Success","description":"","not_null":1,"field_type":"String","type":"Text","is_checked":1},{"key":"data","value":"null","description":"","not_null":1,"field_type":"Null","type":"Text","is_checked":1}],"expect":{"name":"成功","isDefault":1,"code":200,"contentType":"json","verifyType":"schema","schema":[],"mock":""}},"error":{"raw":"","parameter":[],"expect":{"name":"失败","isDefault":-1,"code":404,"contentType":"json","verifyType":"schema","schema":[],"mock":""}}},"parent_id":"dff55161-c46e-4469-9bf9-5a35e3a472a6"},{"local_target_id":"d77c6821-0904-4803-ae55-2756bad05bdd","local_parent_id":"dff55161-c46e-4469-9bf9-5a35e3a472a6","name":"发布流程","method":"POST","mark":"developing","is_doc":0,"target_type":"api","example_type":"0","project_id":"72be9d29-e4bb-4a94-9e33-1946477a7597","status":1,"sort":5,"create_dtime":1679824796,"update_dtime":1679921687,"target_id":"d77c6821-0904-4803-ae55-2756bad05bdd","create_time":"2023-03-26 17:59:56","create_users":{"create_user":"张卢","update_user":"张卢"},"color":"#3A86FF","enable_server_mock":-1,"mock_server_url":"","mock_url":"","new_target_id":"25d08586-7c7e-4226-8edd-2413c04acb71","request":{"url":"http:\/\/127.0.0.1:8201\/logicFlow\/deployFlow","description":"","body":{"mode":"json","parameter":[],"raw":"{\n    \"flowModuleId\": \"118ce103-cc92-11ed-a9ed-f2d57a4703d9\"\n}","raw_para":[{"key":"flowModuleId","value":"52dda21b-cbbc-11ed-8f7b-f2d57a4703d9","description":"流程模型id","not_null":1,"field_type":"String","type":"Text","is_checked":1}]},"event":{"pre_script":"","test":""},"auth":{"type":"noauth","kv":{"key":"","value":""},"bearer":{"key":""},"basic":{"username":"","password":""},"digest":{"username":"","password":"","realm":"","nonce":"","algorithm":"","qop":"","nc":"","cnonce":"","opaque":""},"hawk":{"authId":"","authKey":"","algorithm":"","user":"","nonce":"","extraData":"","app":"","delegation":"","timestamp":"","includePayloadHash":-1},"awsv4":{"accessKey":"","secretKey":"","region":"","service":"","sessionToken":"","addAuthDataToQuery":-1},"ntlm":{"username":"","password":"","domain":"","workstation":"","disableRetryRequest":1},"edgegrid":{"accessToken":"","clientToken":"","clientSecret":"","nonce":"","timestamp":"","baseURi":"","headersToSign":""},"oauth1":{"consumerKey":"","consumerSecret":"","signatureMethod":"","addEmptyParamsToSign":-1,"includeBodyHash":-1,"addParamsToHeader":-1,"realm":"","version":"1.0","nonce":"","timestamp":"","verifier":"","callback":"","tokenSecret":"","token":""}},"header":{"parameter":[]},"query":{"parameter":[]},"cookie":{"parameter":[]},"resful":{"parameter":[]},"url_var":"http:\/\/127.0.0.1:8201\/logicFlow\/deployFlow"},"response":{"success":{"raw":"{\n\t\"errCode\": 1000,\n\t\"errMsg\": \"Success\",\n\t\"data\": {\n\t\t\"flowModuleId\": \"52dda21b-cbbc-11ed-8f7b-f2d57a4703d9\",\n\t\t\"flowDeployId\": \"f6be25de-cbbc-11ed-8f7b-f2d57a4703d9\"\n\t}\n}","parameter":[{"key":"errCode","value":"1000","description":"1000成功标志，其他都是失败","not_null":1,"field_type":"Integer","type":"Text","is_checked":1},{"key":"errMsg","value":"Success","description":"","not_null":1,"field_type":"String","type":"Text","is_checked":1},{"key":"data","value":"","description":"","not_null":1,"field_type":"Object","type":"Text","is_checked":1},{"key":"data.flowModuleId","value":"52dda21b-cbbc-11ed-8f7b-f2d57a4703d9","description":"流程模型id","not_null":1,"field_type":"String","type":"Text","is_checked":1},{"key":"data.flowDeployId","value":"f6be25de-cbbc-11ed-8f7b-f2d57a4703d9","description":"流程部署id","not_null":1,"field_type":"String","type":"Text","is_checked":1}],"expect":{"name":"成功","isDefault":1,"code":200,"contentType":"json","verifyType":"schema","schema":[],"mock":""}},"error":{"raw":"","parameter":[],"expect":{"name":"失败","isDefault":-1,"code":404,"contentType":"json","verifyType":"schema","schema":[],"mock":""}}},"parent_id":"dff55161-c46e-4469-9bf9-5a35e3a472a6"}]},{"local_target_id":"17ab9d98-5ade-4b35-8e07-29241f7ec7e9","local_parent_id":"0fe38088-0094-4270-a5a5-f3204029c4d6","name":"用户流程","method":"POST","mark":"developing","is_doc":0,"target_type":"folder","example_type":"0","project_id":2977194,"status":1,"sort":2,"create_dtime":1679885963,"update_dtime":1679885963,"target_id":"17ab9d98-5ade-4b35-8e07-29241f7ec7e9","create_time":"2023-03-27 10:59:23","create_users":{"create_user":"张卢","update_user":"张卢"},"color":"#3A86FF","script":{"pre_script":"","switch_pre_script":true,"test":"","switch_test":true},"request":{"description":"","header":[],"query":[],"body":[],"auth":{"type":"noauth","kv":{"key":"","value":""},"bearer":{"key":""},"basic":{"username":"","password":""}}},"parent_id":"0fe38088-0094-4270-a5a5-f3204029c4d6","children":[{"local_target_id":"73a9e72e-1ca9-4813-8e2d-47ef22ebb67b","local_parent_id":"17ab9d98-5ade-4b35-8e07-29241f7ec7e9","name":"发起流程-查看表单模版","method":"GET","mark":"developing","is_doc":0,"target_type":"api","example_type":"0","project_id":"72be9d29-e4bb-4a94-9e33-1946477a7597","status":1,"sort":0,"create_dtime":1679825307,"update_dtime":1679928798,"target_id":"73a9e72e-1ca9-4813-8e2d-47ef22ebb67b","create_time":"2023-03-26 18:08:27","create_users":{"create_user":"张卢","update_user":"张卢"},"color":"#3A86FF","enable_server_mock":-1,"mock_server_url":"","mock_url":"","new_target_id":"9e216c2f-cb38-4bf6-aa30-4719b708de21","request":{"url":"http:\/\/127.0.0.1:8201\/flow-task\/form-template?flowDeployId=0cc73bfc-ccaf-11ed-85d5-f2d57a4703d9","description":"","body":{"mode":"none","parameter":[],"raw":"","raw_para":[{"key":"flowModuleId","value":"52dda21b-cbbc-11ed-8f7b-f2d57a4703d9","description":"流程模型id","not_null":1,"field_type":"String","type":"Text","is_checked":1}]},"event":{"pre_script":"","test":""},"auth":{"type":"noauth","kv":{"key":"","value":""},"bearer":{"key":""},"basic":{"username":"","password":""},"digest":{"username":"","password":"","realm":"","nonce":"","algorithm":"","qop":"","nc":"","cnonce":"","opaque":""},"hawk":{"authId":"","authKey":"","algorithm":"","user":"","nonce":"","extraData":"","app":"","delegation":"","timestamp":"","includePayloadHash":-1},"awsv4":{"accessKey":"","secretKey":"","region":"","service":"","sessionToken":"","addAuthDataToQuery":-1},"ntlm":{"username":"","password":"","domain":"","workstation":"","disableRetryRequest":1},"edgegrid":{"accessToken":"","clientToken":"","clientSecret":"","nonce":"","timestamp":"","baseURi":"","headersToSign":""},"oauth1":{"consumerKey":"","consumerSecret":"","signatureMethod":"","addEmptyParamsToSign":-1,"includeBodyHash":-1,"addParamsToHeader":-1,"realm":"","version":"1.0","nonce":"","timestamp":"","verifier":"","callback":"","tokenSecret":"","token":""}},"header":{"parameter":[]},"query":{"parameter":[{"description":"流程发布id","is_checked":1,"key":"flowDeployId","type":"Text","not_null":1,"field_type":"String","value":"0cc73bfc-ccaf-11ed-85d5-f2d57a4703d9","key_var":"","value_var":""}]},"cookie":{"parameter":[]},"resful":{"parameter":[]},"url_var":"http:\/\/127.0.0.1:8201\/flow-task\/form-template?flowDeployId=0cc73bfc-ccaf-11ed-85d5-f2d57a4703d9"},"response":{"success":{"raw":"{\n\t\"errCode\": 1000,\n\t\"errMsg\": \"Success\",\n\t\"data\": {\n\t\t\"id\": 1,\n\t\t\"name\": \"请假流程\",\n\t\t\"status\": 1,\n\t\t\"content\": \"{\\\\\\\"fields\\\\\\\":[{\\\\\\\"__config__\\\\\\\":{\\\\\\\"label\\\\\\\":\\\\\\\"请假天数\\\\\\\",\\\\\\\"labelWidth\\\\\\\":null,\\\\\\\"showLabel\\\\\\\":true,\\\\\\\"changeTag\\\\\\\":true,\\\\\\\"tag\\\\\\\":\\\\\\\"el-input\\\\\\\",\\\\\\\"tagIcon\\\\\\\":\\\\\\\"input\\\\\\\",\\\\\\\"defaultValue\\\\\\\":\\\\\\\"\\\\\\\",\\\\\\\"required\\\\\\\":true,\\\\\\\"layout\\\\\\\":\\\\\\\"colFormItem\\\\\\\",\\\\\\\"span\\\\\\\":24,\\\\\\\"document\\\\\\\":\\\\\\\"https:\/\/element.eleme.cn\/#\/zh-CN\/component\/input\\\\\\\",\\\\\\\"regList\\\\\\\":[]},\\\\\\\"__slot__\\\\\\\":{\\\\\\\"prepend\\\\\\\":\\\\\\\"\\\\\\\",\\\\\\\"append\\\\\\\":\\\\\\\"\\\\\\\"},\\\\\\\"__vModel__\\\\\\\":\\\\\\\"days\\\\\\\",\\\\\\\"placeholder\\\\\\\":\\\\\\\"请输入请假天数\\\\\\\",\\\\\\\"style\\\\\\\":{\\\\\\\"width\\\\\\\":\\\\\\\"100%\\\\\\\"},\\\\\\\"clearable\\\\\\\":true,\\\\\\\"prefix-icon\\\\\\\":\\\\\\\"el-icon-mobile\\\\\\\",\\\\\\\"suffix-icon\\\\\\\":\\\\\\\"\\\\\\\",\\\\\\\"maxlength\\\\\\\":11,\\\\\\\"show-word-limit\\\\\\\":true,\\\\\\\"readonly\\\\\\\":false,\\\\\\\"disabled\\\\\\\":false},{\\\\\\\"__config__\\\\\\\":{\\\\\\\"label\\\\\\\":\\\\\\\"原因\\\\\\\",\\\\\\\"labelWidth\\\\\\\":null,\\\\\\\"showLabel\\\\\\\":true,\\\\\\\"tag\\\\\\\":\\\\\\\"el-input\\\\\\\",\\\\\\\"tagIcon\\\\\\\":\\\\\\\"textarea\\\\\\\",\\\\\\\"required\\\\\\\":true,\\\\\\\"layout\\\\\\\":\\\\\\\"colFormItem\\\\\\\",\\\\\\\"span\\\\\\\":24,\\\\\\\"regList\\\\\\\":[],\\\\\\\"changeTag\\\\\\\":true,\\\\\\\"document\\\\\\\":\\\\\\\"https:\/\/element.eleme.cn\/#\/zh-CN\/component\/input\\\\\\\",\\\\\\\"formId\\\\\\\":101,\\\\\\\"renderKey\\\\\\\":1679811891558},\\\\\\\"type\\\\\\\":\\\\\\\"textarea\\\\\\\",\\\\\\\"placeholder\\\\\\\":\\\\\\\"请输入原因\\\\\\\",\\\\\\\"autosize\\\\\\\":{\\\\\\\"minRows\\\\\\\":4,\\\\\\\"maxRows\\\\\\\":4},\\\\\\\"style\\\\\\\":{\\\\\\\"width\\\\\\\":\\\\\\\"100%\\\\\\\"},\\\\\\\"maxlength\\\\\\\":null,\\\\\\\"show-word-limit\\\\\\\":false,\\\\\\\"readonly\\\\\\\":false,\\\\\\\"disabled\\\\\\\":false,\\\\\\\"__vModel__\\\\\\\":\\\\\\\"description\\\\\\\"}],\\\\\\\"formRef\\\\\\\":\\\\\\\"qjlcbd\\\\\\\",\\\\\\\"formModel\\\\\\\":\\\\\\\"formData\\\\\\\",\\\\\\\"size\\\\\\\":\\\\\\\"medium\\\\\\\",\\\\\\\"labelPosition\\\\\\\":\\\\\\\"right\\\\\\\",\\\\\\\"labelWidth\\\\\\\":100,\\\\\\\"formRules\\\\\\\":\\\\\\\"rules\\\\\\\",\\\\\\\"gutter\\\\\\\":15,\\\\\\\"disabled\\\\\\\":false,\\\\\\\"span\\\\\\\":24,\\\\\\\"formBtns\\\\\\\":true}\"\n\t}\n}","parameter":[{"key":"errCode","value":"1000","description":"1000成功标志，其他都是失败","not_null":1,"field_type":"Integer","type":"Text","is_checked":1},{"key":"errMsg","value":"Success","description":"","not_null":1,"field_type":"String","type":"Text","is_checked":1},{"key":"data","value":"","description":"数据","not_null":1,"field_type":"Object","type":"Text","is_checked":1},{"key":"data.id","value":"1","description":"表单模版id","not_null":1,"field_type":"Integer","type":"Text","is_checked":1},{"key":"data.name","value":"请假流程","description":"表单模版名称","not_null":1,"field_type":"String","type":"Text","is_checked":1},{"key":"data.status","value":"1","description":"状态 0删除；1在用","not_null":1,"field_type":"Integer","type":"Text","is_checked":1},{"key":"data.content","value":"{\\\"fields\\\":[{\\\"__config__\\\":{\\\"label\\\":\\\"请假天数\\\",\\\"labelWidth\\\":null,\\\"showLabel\\\":true,\\\"changeTag\\\":true,\\\"tag\\\":\\\"el-input\\\",\\\"tagIcon\\\":\\\"input\\\",\\\"defaultValue\\\":\\\"\\\",\\\"required\\\":true,\\\"layout\\\":\\\"colFormItem\\\",\\\"span\\\":24,\\\"document\\\":\\\"https:\/\/element.eleme.cn\/#\/zh-CN\/component\/input\\\",\\\"regList\\\":[]},\\\"__slot__\\\":{\\\"prepend\\\":\\\"\\\",\\\"append\\\":\\\"\\\"},\\\"__vModel__\\\":\\\"days\\\",\\\"placeholder\\\":\\\"请输入请假天数\\\",\\\"style\\\":{\\\"width\\\":\\\"100%\\\"},\\\"clearable\\\":true,\\\"prefix-icon\\\":\\\"el-icon-mobile\\\",\\\"suffix-icon\\\":\\\"\\\",\\\"maxlength\\\":11,\\\"show-word-limit\\\":true,\\\"readonly\\\":false,\\\"disabled\\\":false},{\\\"__config__\\\":{\\\"label\\\":\\\"原因\\\",\\\"labelWidth\\\":null,\\\"showLabel\\\":true,\\\"tag\\\":\\\"el-input\\\",\\\"tagIcon\\\":\\\"textarea\\\",\\\"required\\\":true,\\\"layout\\\":\\\"colFormItem\\\",\\\"span\\\":24,\\\"regList\\\":[],\\\"changeTag\\\":true,\\\"document\\\":\\\"https:\/\/element.eleme.cn\/#\/zh-CN\/component\/input\\\",\\\"formId\\\":101,\\\"renderKey\\\":1679811891558},\\\"type\\\":\\\"textarea\\\",\\\"placeholder\\\":\\\"请输入原因\\\",\\\"autosize\\\":{\\\"minRows\\\":4,\\\"maxRows\\\":4},\\\"style\\\":{\\\"width\\\":\\\"100%\\\"},\\\"maxlength\\\":null,\\\"show-word-limit\\\":false,\\\"readonly\\\":false,\\\"disabled\\\":false,\\\"__vModel__\\\":\\\"description\\\"}],\\\"formRef\\\":\\\"qjlcbd\\\",\\\"formModel\\\":\\\"formData\\\",\\\"size\\\":\\\"medium\\\",\\\"labelPosition\\\":\\\"right\\\",\\\"labelWidth\\\":100,\\\"formRules\\\":\\\"rules\\\",\\\"gutter\\\":15,\\\"disabled\\\":false,\\\"span\\\":24,\\\"formBtns\\\":true}","description":"模版内容","not_null":1,"field_type":"String","type":"Text","is_checked":1}],"expect":{"name":"成功","isDefault":1,"code":200,"contentType":"json","verifyType":"schema","schema":[],"mock":""}},"error":{"raw":"","parameter":[],"expect":{"name":"失败","isDefault":-1,"code":404,"contentType":"json","verifyType":"schema","schema":[],"mock":""}}},"parent_id":"17ab9d98-5ade-4b35-8e07-29241f7ec7e9"},{"local_target_id":"8f3204d2-bc4e-4a32-b436-7a7afe5f1b82","local_parent_id":"17ab9d98-5ade-4b35-8e07-29241f7ec7e9","name":"发起流程","method":"POST","mark":"developing","is_doc":0,"target_type":"api","example_type":"0","project_id":"72be9d29-e4bb-4a94-9e33-1946477a7597","status":1,"sort":1,"create_dtime":1679825738,"update_dtime":1679928795,"target_id":"8f3204d2-bc4e-4a32-b436-7a7afe5f1b82","create_time":"2023-03-26 18:15:38","create_users":{"create_user":"张卢","update_user":"张卢"},"color":"#3A86FF","enable_server_mock":-1,"mock_server_url":"","mock_url":"","new_target_id":"b316797e-9217-4ae3-8ace-1e0988a8d919","request":{"url":"http:\/\/127.0.0.1:8201\/flow-task\/start-process?flowDeployId=0cc73bfc-ccaf-11ed-85d5-f2d57a4703d9","description":"","body":{"mode":"json","parameter":[],"raw":"{\n    \"sgrs_02\": \"6人\",\n    \"kplx_11\": \"B\",\n    \"jxry_06\": \"张三\",\n    \"sgry_07\": \"李四\",\n    \"xzry_08\": \"\",\n    \"bhqk_09\": \"\",\n    \"kzcs_10\": \"\"\n}","raw_para":[{"key":"days","value":"1","description":"表单自定义字段","not_null":1,"field_type":"Integer","type":"Text","is_checked":1},{"key":"description","value":"身体不舒服","description":"表单自定义字段","not_null":1,"field_type":"String","type":"Text","is_checked":1}]},"event":{"pre_script":"","test":""},"auth":{"type":"noauth","kv":{"key":"","value":""},"bearer":{"key":""},"basic":{"username":"","password":""},"digest":{"username":"","password":"","realm":"","nonce":"","algorithm":"","qop":"","nc":"","cnonce":"","opaque":""},"hawk":{"authId":"","authKey":"","algorithm":"","user":"","nonce":"","extraData":"","app":"","delegation":"","timestamp":"","includePayloadHash":-1},"awsv4":{"accessKey":"","secretKey":"","region":"","service":"","sessionToken":"","addAuthDataToQuery":-1},"ntlm":{"username":"","password":"","domain":"","workstation":"","disableRetryRequest":1},"edgegrid":{"accessToken":"","clientToken":"","clientSecret":"","nonce":"","timestamp":"","baseURi":"","headersToSign":""},"oauth1":{"consumerKey":"","consumerSecret":"","signatureMethod":"","addEmptyParamsToSign":-1,"includeBodyHash":-1,"addParamsToHeader":-1,"realm":"","version":"1.0","nonce":"","timestamp":"","verifier":"","callback":"","tokenSecret":"","token":""}},"header":{"parameter":[]},"query":{"parameter":[{"description":"流程发布id","field_type":"String","is_checked":1,"key":"flowDeployId","value":"0cc73bfc-ccaf-11ed-85d5-f2d57a4703d9","not_null":1,"type":"Text","key_var":"","value_var":""}]},"cookie":{"parameter":[]},"resful":{"parameter":[]},"url_var":"http:\/\/127.0.0.1:8201\/flow-task\/start-process?flowDeployId=0cc73bfc-ccaf-11ed-85d5-f2d57a4703d9"},"response":{"success":{"raw":"{\n\t\"errCode\": 1000,\n\t\"errMsg\": \"Success\",\n\t\"flowInstanceId\": \"297caf7e-cbc0-11ed-89e7-f2d57a4703d9\",\n\t\"status\": 2,\n\t\"activeTaskInstance\": {\n\t\t\"modelKey\": \"Activity_0dk2jeq\",\n\t\t\"modelName\": \"\",\n\t\t\"properties\": {\n\t\t\t\"form_template_id\": 1,\n\t\t\t\"name\": \"\",\n\t\t\t\"x\": 580,\n\t\t\t\"y\": 290,\n\t\t\t\"text\": \"\"\n\t\t},\n\t\t\"status\": 2,\n\t\t\"nodeInstanceId\": \"298c66f1-cbc0-11ed-89e7-f2d57a4703d9\",\n\t\t\"createTime\": null,\n\t\t\"modifyTime\": null\n\t},\n\t\"variables\": [\n\t\t{\n\t\t\t\"key\": \"days\",\n\t\t\t\"type\": null,\n\t\t\t\"value\": 1\n\t\t},\n\t\t{\n\t\t\t\"key\": \"description\",\n\t\t\t\"type\": null,\n\t\t\t\"value\": \"身体不舒服\"\n\t\t}\n\t],\n\t\"flowDeployId\": \"020ada55-cbb8-11ed-a2f9-f2d57a4703d9\",\n\t\"flowModuleId\": \"21455a0b-cbac-11ed-9f32-f2d57a4703d9\"\n}","parameter":[{"key":"errCode","value":"1000","description":"1000成功标志，其他都是失败","not_null":1,"field_type":"Integer","type":"Text","is_checked":1},{"key":"errMsg","value":"Success","description":"","not_null":1,"field_type":"String","type":"Text","is_checked":1},{"key":"flowInstanceId","value":"297caf7e-cbc0-11ed-89e7-f2d57a4703d9","description":"流程实例id","not_null":1,"field_type":"String","type":"Text","is_checked":1},{"key":"status","value":"2","description":"状态(1.处理成功 2.处理中 3.处理失败 4.处理已撤销)","not_null":1,"field_type":"Integer","type":"Text","is_checked":1},{"key":"activeTaskInstance","value":"","description":"","not_null":1,"field_type":"Object","type":"Text","is_checked":1},{"key":"activeTaskInstance.modelKey","value":"Activity_0dk2jeq","description":"模型节点key","not_null":1,"field_type":"String","type":"Text","is_checked":1},{"key":"activeTaskInstance.modelName","value":"","description":"","not_null":1,"field_type":"String","type":"Text","is_checked":1},{"key":"activeTaskInstance.properties","value":"","description":"","not_null":1,"field_type":"Object","type":"Text","is_checked":1},{"key":"activeTaskInstance.properties.form_template_id","value":"1","description":"模版id","not_null":1,"field_type":"Integer","type":"Text","is_checked":1},{"key":"activeTaskInstance.properties.name","value":"","description":"","not_null":1,"field_type":"String","type":"Text","is_checked":1},{"key":"activeTaskInstance.properties.x","value":"580","description":"","not_null":1,"field_type":"Integer","type":"Text","is_checked":1},{"key":"activeTaskInstance.properties.y","value":"290","description":"","not_null":1,"field_type":"Integer","type":"Text","is_checked":1},{"key":"activeTaskInstance.properties.text","value":"","description":"","not_null":1,"field_type":"String","type":"Text","is_checked":1},{"key":"activeTaskInstance.status","value":"2","description":"","not_null":1,"field_type":"Integer","type":"Text","is_checked":1},{"key":"activeTaskInstance.nodeInstanceId","value":"298c66f1-cbc0-11ed-89e7-f2d57a4703d9","description":"流程实例节点id","not_null":1,"field_type":"String","type":"Text","is_checked":1},{"key":"activeTaskInstance.createTime","value":"null","description":"","not_null":1,"field_type":"Null","type":"Text","is_checked":1},{"key":"activeTaskInstance.modifyTime","value":"null","description":"","not_null":1,"field_type":"Null","type":"Text","is_checked":1},{"key":"variables","value":"","description":"变量（全局变量、任务变量、临时变量、表单参数）","not_null":1,"field_type":"Array","type":"Text","is_checked":1},{"key":"variables.key","value":"days","description":"key","not_null":1,"field_type":"String","type":"Text","is_checked":1},{"key":"variables.type","value":"null","description":"","not_null":1,"field_type":"Null","type":"Text","is_checked":1},{"key":"variables.value","value":"1","description":"valye","not_null":1,"field_type":"Integer","type":"Text","is_checked":1},{"key":"flowDeployId","value":"020ada55-cbb8-11ed-a2f9-f2d57a4703d9","description":"流程发布id","not_null":1,"field_type":"String","type":"Text","is_checked":1},{"key":"flowModuleId","value":"21455a0b-cbac-11ed-9f32-f2d57a4703d9","description":"流程模型id","not_null":1,"field_type":"String","type":"Text","is_checked":1}],"expect":{"name":"成功","isDefault":1,"code":200,"contentType":"json","verifyType":"schema","schema":[],"mock":""}},"error":{"raw":"","parameter":[],"expect":{"name":"失败","isDefault":-1,"code":404,"contentType":"json","verifyType":"schema","schema":[],"mock":""}}},"parent_id":"17ab9d98-5ade-4b35-8e07-29241f7ec7e9"},{"local_target_id":"a882778e-58a5-4c16-a61d-ccf8a176ed7f","local_parent_id":"17ab9d98-5ade-4b35-8e07-29241f7ec7e9","name":"任务流程-查看表单","method":"GET","mark":"developing","is_doc":0,"target_type":"api","example_type":"0","project_id":"72be9d29-e4bb-4a94-9e33-1946477a7597","status":1,"sort":2,"create_dtime":1679825494,"update_dtime":1679921973,"target_id":"a882778e-58a5-4c16-a61d-ccf8a176ed7f","create_time":"2023-03-26 18:11:34","create_users":{"create_user":"张卢","update_user":"张卢"},"color":"#3A86FF","enable_server_mock":-1,"mock_server_url":"","mock_url":"","new_target_id":"57f9b770-391b-48a3-b4dd-d3cc1b48b1db","request":{"url":"http:\/\/127.0.0.1:8201\/flow-task\/form-info?flowInstanceId=1bab22d6-cc9f-11ed-a5b5-f2d57a4703d9","description":"","body":{"mode":"none","parameter":[],"raw":"","raw_para":[{"key":"flowModuleId","value":"52dda21b-cbbc-11ed-8f7b-f2d57a4703d9","description":"流程模型id","not_null":1,"field_type":"String","type":"Text","is_checked":1}]},"event":{"pre_script":"","test":""},"auth":{"type":"noauth","kv":{"key":"","value":""},"bearer":{"key":""},"basic":{"username":"","password":""},"digest":{"username":"","password":"","realm":"","nonce":"","algorithm":"","qop":"","nc":"","cnonce":"","opaque":""},"hawk":{"authId":"","authKey":"","algorithm":"","user":"","nonce":"","extraData":"","app":"","delegation":"","timestamp":"","includePayloadHash":-1},"awsv4":{"accessKey":"","secretKey":"","region":"","service":"","sessionToken":"","addAuthDataToQuery":-1},"ntlm":{"username":"","password":"","domain":"","workstation":"","disableRetryRequest":1},"edgegrid":{"accessToken":"","clientToken":"","clientSecret":"","nonce":"","timestamp":"","baseURi":"","headersToSign":""},"oauth1":{"consumerKey":"","consumerSecret":"","signatureMethod":"","addEmptyParamsToSign":-1,"includeBodyHash":-1,"addParamsToHeader":-1,"realm":"","version":"1.0","nonce":"","timestamp":"","verifier":"","callback":"","tokenSecret":"","token":""}},"header":{"parameter":[]},"query":{"parameter":[{"description":"流程实例id","is_checked":1,"key":"flowInstanceId","type":"Text","not_null":1,"field_type":"String","value":"1bab22d6-cc9f-11ed-a5b5-f2d57a4703d9","key_var":"","value_var":""}]},"cookie":{"parameter":[]},"resful":{"parameter":[]},"url_var":"http:\/\/127.0.0.1:8201\/flow-task\/form-info?flowInstanceId=1bab22d6-cc9f-11ed-a5b5-f2d57a4703d9"},"response":{"success":{"raw":"{\n\t\"errCode\": 1000,\n\t\"errMsg\": \"Success\",\n\t\"data\": {\n\t\t\"flow_instance_id\": \"c1dc95fb-cbc8-11ed-a5ee-f2d57a4703d9\",\n\t\t\"variables\": {\n\t\t\t\"description\": \"身体不舒服\",\n\t\t\t\"days\": 1\n\t\t},\n\t\t\"form_template\": {\n\t\t\t\"id\": 1,\n\t\t\t\"name\": \"请假流程\",\n\t\t\t\"status\": 1,\n\t\t\t\"content\": \"{\\\\\\\"fields\\\\\\\":[{\\\\\\\"__config__\\\\\\\":{\\\\\\\"label\\\\\\\":\\\\\\\"请假天数\\\\\\\",\\\\\\\"labelWidth\\\\\\\":null,\\\\\\\"showLabel\\\\\\\":true,\\\\\\\"changeTag\\\\\\\":true,\\\\\\\"tag\\\\\\\":\\\\\\\"el-input\\\\\\\",\\\\\\\"tagIcon\\\\\\\":\\\\\\\"input\\\\\\\",\\\\\\\"defaultValue\\\\\\\":\\\\\\\"\\\\\\\",\\\\\\\"required\\\\\\\":true,\\\\\\\"layout\\\\\\\":\\\\\\\"colFormItem\\\\\\\",\\\\\\\"span\\\\\\\":24,\\\\\\\"document\\\\\\\":\\\\\\\"https:\/\/element.eleme.cn\/#\/zh-CN\/component\/input\\\\\\\",\\\\\\\"regList\\\\\\\":[]},\\\\\\\"__slot__\\\\\\\":{\\\\\\\"prepend\\\\\\\":\\\\\\\"\\\\\\\",\\\\\\\"append\\\\\\\":\\\\\\\"\\\\\\\"},\\\\\\\"__vModel__\\\\\\\":\\\\\\\"days\\\\\\\",\\\\\\\"placeholder\\\\\\\":\\\\\\\"请输入请假天数\\\\\\\",\\\\\\\"style\\\\\\\":{\\\\\\\"width\\\\\\\":\\\\\\\"100%\\\\\\\"},\\\\\\\"clearable\\\\\\\":true,\\\\\\\"prefix-icon\\\\\\\":\\\\\\\"el-icon-mobile\\\\\\\",\\\\\\\"suffix-icon\\\\\\\":\\\\\\\"\\\\\\\",\\\\\\\"maxlength\\\\\\\":11,\\\\\\\"show-word-limit\\\\\\\":true,\\\\\\\"readonly\\\\\\\":false,\\\\\\\"disabled\\\\\\\":false},{\\\\\\\"__config__\\\\\\\":{\\\\\\\"label\\\\\\\":\\\\\\\"原因\\\\\\\",\\\\\\\"labelWidth\\\\\\\":null,\\\\\\\"showLabel\\\\\\\":true,\\\\\\\"tag\\\\\\\":\\\\\\\"el-input\\\\\\\",\\\\\\\"tagIcon\\\\\\\":\\\\\\\"textarea\\\\\\\",\\\\\\\"required\\\\\\\":true,\\\\\\\"layout\\\\\\\":\\\\\\\"colFormItem\\\\\\\",\\\\\\\"span\\\\\\\":24,\\\\\\\"regList\\\\\\\":[],\\\\\\\"changeTag\\\\\\\":true,\\\\\\\"document\\\\\\\":\\\\\\\"https:\/\/element.eleme.cn\/#\/zh-CN\/component\/input\\\\\\\",\\\\\\\"formId\\\\\\\":101,\\\\\\\"renderKey\\\\\\\":1679811891558},\\\\\\\"type\\\\\\\":\\\\\\\"textarea\\\\\\\",\\\\\\\"placeholder\\\\\\\":\\\\\\\"请输入原因\\\\\\\",\\\\\\\"autosize\\\\\\\":{\\\\\\\"minRows\\\\\\\":4,\\\\\\\"maxRows\\\\\\\":4},\\\\\\\"style\\\\\\\":{\\\\\\\"width\\\\\\\":\\\\\\\"100%\\\\\\\"},\\\\\\\"maxlength\\\\\\\":null,\\\\\\\"show-word-limit\\\\\\\":false,\\\\\\\"readonly\\\\\\\":false,\\\\\\\"disabled\\\\\\\":false,\\\\\\\"__vModel__\\\\\\\":\\\\\\\"description\\\\\\\"}],\\\\\\\"formRef\\\\\\\":\\\\\\\"qjlcbd\\\\\\\",\\\\\\\"formModel\\\\\\\":\\\\\\\"formData\\\\\\\",\\\\\\\"size\\\\\\\":\\\\\\\"medium\\\\\\\",\\\\\\\"labelPosition\\\\\\\":\\\\\\\"right\\\\\\\",\\\\\\\"labelWidth\\\\\\\":100,\\\\\\\"formRules\\\\\\\":\\\\\\\"rules\\\\\\\",\\\\\\\"gutter\\\\\\\":15,\\\\\\\"disabled\\\\\\\":false,\\\\\\\"span\\\\\\\":24,\\\\\\\"formBtns\\\\\\\":true}\"\n\t\t}\n\t}\n}","parameter":[{"key":"errCode","value":"1000","description":"1000成功标志，其他都是失败","not_null":1,"field_type":"Integer","type":"Text","is_checked":1},{"key":"errMsg","value":"Success","description":"","not_null":1,"field_type":"String","type":"Text","is_checked":1},{"key":"data","value":"","description":"数据","not_null":1,"field_type":"Object","type":"Text","is_checked":1},{"key":"data.flow_instance_id","value":"c1dc95fb-cbc8-11ed-a5ee-f2d57a4703d9","description":"实例id","not_null":1,"field_type":"String","type":"Text","is_checked":1},{"key":"data.variables","value":"","description":"变量（全局变量、任务变量、临时变量、表单参数）","not_null":1,"field_type":"Object","type":"Text","is_checked":1},{"key":"data.variables.description","value":"身体不舒服","description":"表单字段","not_null":1,"field_type":"String","type":"Text","is_checked":1},{"key":"data.variables.days","value":"1","description":"表单字段","not_null":1,"field_type":"Integer","type":"Text","is_checked":1},{"key":"data.form_template","value":"","description":"表单模版","not_null":1,"field_type":"Object","type":"Text","is_checked":1},{"key":"data.form_template.id","value":"1","description":"表单模版id","not_null":1,"field_type":"Integer","type":"Text","is_checked":1},{"key":"data.form_template.name","value":"请假流程","description":"表单模版名称","not_null":1,"field_type":"String","type":"Text","is_checked":1},{"key":"data.form_template.status","value":"1","description":"状态 0删除；1在用","not_null":1,"field_type":"Integer","type":"Text","is_checked":1},{"key":"data.form_template.content","value":"{\\\"fields\\\":[{\\\"__config__\\\":{\\\"label\\\":\\\"请假天数\\\",\\\"labelWidth\\\":null,\\\"showLabel\\\":true,\\\"changeTag\\\":true,\\\"tag\\\":\\\"el-input\\\",\\\"tagIcon\\\":\\\"input\\\",\\\"defaultValue\\\":\\\"\\\",\\\"required\\\":true,\\\"layout\\\":\\\"colFormItem\\\",\\\"span\\\":24,\\\"document\\\":\\\"https:\/\/element.eleme.cn\/#\/zh-CN\/component\/input\\\",\\\"regList\\\":[]},\\\"__slot__\\\":{\\\"prepend\\\":\\\"\\\",\\\"append\\\":\\\"\\\"},\\\"__vModel__\\\":\\\"days\\\",\\\"placeholder\\\":\\\"请输入请假天数\\\",\\\"style\\\":{\\\"width\\\":\\\"100%\\\"},\\\"clearable\\\":true,\\\"prefix-icon\\\":\\\"el-icon-mobile\\\",\\\"suffix-icon\\\":\\\"\\\",\\\"maxlength\\\":11,\\\"show-word-limit\\\":true,\\\"readonly\\\":false,\\\"disabled\\\":false},{\\\"__config__\\\":{\\\"label\\\":\\\"原因\\\",\\\"labelWidth\\\":null,\\\"showLabel\\\":true,\\\"tag\\\":\\\"el-input\\\",\\\"tagIcon\\\":\\\"textarea\\\",\\\"required\\\":true,\\\"layout\\\":\\\"colFormItem\\\",\\\"span\\\":24,\\\"regList\\\":[],\\\"changeTag\\\":true,\\\"document\\\":\\\"https:\/\/element.eleme.cn\/#\/zh-CN\/component\/input\\\",\\\"formId\\\":101,\\\"renderKey\\\":1679811891558},\\\"type\\\":\\\"textarea\\\",\\\"placeholder\\\":\\\"请输入原因\\\",\\\"autosize\\\":{\\\"minRows\\\":4,\\\"maxRows\\\":4},\\\"style\\\":{\\\"width\\\":\\\"100%\\\"},\\\"maxlength\\\":null,\\\"show-word-limit\\\":false,\\\"readonly\\\":false,\\\"disabled\\\":false,\\\"__vModel__\\\":\\\"description\\\"}],\\\"formRef\\\":\\\"qjlcbd\\\",\\\"formModel\\\":\\\"formData\\\",\\\"size\\\":\\\"medium\\\",\\\"labelPosition\\\":\\\"right\\\",\\\"labelWidth\\\":100,\\\"formRules\\\":\\\"rules\\\",\\\"gutter\\\":15,\\\"disabled\\\":false,\\\"span\\\":24,\\\"formBtns\\\":true}","description":"模版内容","not_null":1,"field_type":"String","type":"Text","is_checked":1}],"expect":{"name":"成功","isDefault":1,"code":200,"contentType":"json","verifyType":"schema","schema":[],"mock":""}},"error":{"raw":"","parameter":[],"expect":{"name":"失败","isDefault":-1,"code":404,"contentType":"json","verifyType":"schema","schema":[],"mock":""}}},"parent_id":"17ab9d98-5ade-4b35-8e07-29241f7ec7e9"},{"local_target_id":"3b7e0739-fa1c-4d09-96a0-ff28770affd1","local_parent_id":"17ab9d98-5ade-4b35-8e07-29241f7ec7e9","name":"提交任务-审批通过","method":"POST","mark":"developing","is_doc":0,"target_type":"api","example_type":"0","project_id":"72be9d29-e4bb-4a94-9e33-1946477a7597","status":1,"sort":3,"create_dtime":1679828148,"update_dtime":1679928813,"target_id":"3b7e0739-fa1c-4d09-96a0-ff28770affd1","create_time":"2023-03-26 18:55:48","create_users":{"create_user":"张卢","update_user":"张卢"},"color":"#3A86FF","enable_server_mock":-1,"mock_server_url":"","mock_url":"","new_target_id":"345103d1-66bb-413b-97d3-03790ea38d06","request":{"url":"http:\/\/127.0.0.1:8201\/flow-task\/commit-do?flowInstanceId=1ee8f53e-ccaf-11ed-85d5-f2d57a4703d9","description":"","body":{"mode":"json","parameter":[],"raw":"{\n    \"step02\": \"2\"\n}","raw_para":[{"key":"flowModuleId","value":"52dda21b-cbbc-11ed-8f7b-f2d57a4703d9","description":"流程模型id","not_null":1,"field_type":"String","type":"Text","is_checked":1}]},"event":{"pre_script":"","test":""},"auth":{"type":"noauth","kv":{"key":"","value":""},"bearer":{"key":""},"basic":{"username":"","password":""},"digest":{"username":"","password":"","realm":"","nonce":"","algorithm":"","qop":"","nc":"","cnonce":"","opaque":""},"hawk":{"authId":"","authKey":"","algorithm":"","user":"","nonce":"","extraData":"","app":"","delegation":"","timestamp":"","includePayloadHash":-1},"awsv4":{"accessKey":"","secretKey":"","region":"","service":"","sessionToken":"","addAuthDataToQuery":-1},"ntlm":{"username":"","password":"","domain":"","workstation":"","disableRetryRequest":1},"edgegrid":{"accessToken":"","clientToken":"","clientSecret":"","nonce":"","timestamp":"","baseURi":"","headersToSign":""},"oauth1":{"consumerKey":"","consumerSecret":"","signatureMethod":"","addEmptyParamsToSign":-1,"includeBodyHash":-1,"addParamsToHeader":-1,"realm":"","version":"1.0","nonce":"","timestamp":"","verifier":"","callback":"","tokenSecret":"","token":""}},"header":{"parameter":[]},"query":{"parameter":[{"description":"流程实例id","is_checked":1,"key":"flowInstanceId","type":"Text","not_null":1,"field_type":"String","value":"1ee8f53e-ccaf-11ed-85d5-f2d57a4703d9","key_var":"","value_var":""}]},"cookie":{"parameter":[]},"resful":{"parameter":[]},"url_var":"http:\/\/127.0.0.1:8201\/flow-task\/commit-do?flowInstanceId=1ee8f53e-ccaf-11ed-85d5-f2d57a4703d9"},"response":{"success":{"raw":"{\n\t\"errCode\": 1000,\n\t\"errMsg\": \"Success\",\n\t\"data\": {\n\t\t\"form_template\": {\n\t\t\t\"id\": 1,\n\t\t\t\"name\": \"请假流程\",\n\t\t\t\"status\": 1,\n\t\t\t\"content\": \"{\\\\\\\"fields\\\\\\\":[{\\\\\\\"__config__\\\\\\\":{\\\\\\\"label\\\\\\\":\\\\\\\"请假天数\\\\\\\",\\\\\\\"labelWidth\\\\\\\":null,\\\\\\\"showLabel\\\\\\\":true,\\\\\\\"changeTag\\\\\\\":true,\\\\\\\"tag\\\\\\\":\\\\\\\"el-input\\\\\\\",\\\\\\\"tagIcon\\\\\\\":\\\\\\\"input\\\\\\\",\\\\\\\"defaultValue\\\\\\\":\\\\\\\"\\\\\\\",\\\\\\\"required\\\\\\\":true,\\\\\\\"layout\\\\\\\":\\\\\\\"colFormItem\\\\\\\",\\\\\\\"span\\\\\\\":24,\\\\\\\"document\\\\\\\":\\\\\\\"https:\/\/element.eleme.cn\/#\/zh-CN\/component\/input\\\\\\\",\\\\\\\"regList\\\\\\\":[]},\\\\\\\"__slot__\\\\\\\":{\\\\\\\"prepend\\\\\\\":\\\\\\\"\\\\\\\",\\\\\\\"append\\\\\\\":\\\\\\\"\\\\\\\"},\\\\\\\"__vModel__\\\\\\\":\\\\\\\"days\\\\\\\",\\\\\\\"placeholder\\\\\\\":\\\\\\\"请输入请假天数\\\\\\\",\\\\\\\"style\\\\\\\":{\\\\\\\"width\\\\\\\":\\\\\\\"100%\\\\\\\"},\\\\\\\"clearable\\\\\\\":true,\\\\\\\"prefix-icon\\\\\\\":\\\\\\\"el-icon-mobile\\\\\\\",\\\\\\\"suffix-icon\\\\\\\":\\\\\\\"\\\\\\\",\\\\\\\"maxlength\\\\\\\":11,\\\\\\\"show-word-limit\\\\\\\":true,\\\\\\\"readonly\\\\\\\":false,\\\\\\\"disabled\\\\\\\":false},{\\\\\\\"__config__\\\\\\\":{\\\\\\\"label\\\\\\\":\\\\\\\"原因\\\\\\\",\\\\\\\"labelWidth\\\\\\\":null,\\\\\\\"showLabel\\\\\\\":true,\\\\\\\"tag\\\\\\\":\\\\\\\"el-input\\\\\\\",\\\\\\\"tagIcon\\\\\\\":\\\\\\\"textarea\\\\\\\",\\\\\\\"required\\\\\\\":true,\\\\\\\"layout\\\\\\\":\\\\\\\"colFormItem\\\\\\\",\\\\\\\"span\\\\\\\":24,\\\\\\\"regList\\\\\\\":[],\\\\\\\"changeTag\\\\\\\":true,\\\\\\\"document\\\\\\\":\\\\\\\"https:\/\/element.eleme.cn\/#\/zh-CN\/component\/input\\\\\\\",\\\\\\\"formId\\\\\\\":101,\\\\\\\"renderKey\\\\\\\":1679811891558},\\\\\\\"type\\\\\\\":\\\\\\\"textarea\\\\\\\",\\\\\\\"placeholder\\\\\\\":\\\\\\\"请输入原因\\\\\\\",\\\\\\\"autosize\\\\\\\":{\\\\\\\"minRows\\\\\\\":4,\\\\\\\"maxRows\\\\\\\":4},\\\\\\\"style\\\\\\\":{\\\\\\\"width\\\\\\\":\\\\\\\"100%\\\\\\\"},\\\\\\\"maxlength\\\\\\\":null,\\\\\\\"show-word-limit\\\\\\\":false,\\\\\\\"readonly\\\\\\\":false,\\\\\\\"disabled\\\\\\\":false,\\\\\\\"__vModel__\\\\\\\":\\\\\\\"description\\\\\\\"}],\\\\\\\"formRef\\\\\\\":\\\\\\\"qjlcbd\\\\\\\",\\\\\\\"formModel\\\\\\\":\\\\\\\"formData\\\\\\\",\\\\\\\"size\\\\\\\":\\\\\\\"medium\\\\\\\",\\\\\\\"labelPosition\\\\\\\":\\\\\\\"right\\\\\\\",\\\\\\\"labelWidth\\\\\\\":100,\\\\\\\"formRules\\\\\\\":\\\\\\\"rules\\\\\\\",\\\\\\\"gutter\\\\\\\":15,\\\\\\\"disabled\\\\\\\":false,\\\\\\\"span\\\\\\\":24,\\\\\\\"formBtns\\\\\\\":true}\"\n\t\t},\n\t\t\"business_data\": \"[{\\\"key\\\":\\\"days\\\",\\\"value\\\":1},{\\\"key\\\":\\\"description\\\",\\\"value\\\":\\\"身体不舒服\\\"}]\"\n\t}\n}","parameter":[{"key":"errCode","value":"1000","description":"1000成功标志，其他都是失败","not_null":1,"field_type":"Integer","type":"Text","is_checked":1},{"key":"errMsg","value":"Success","description":"","not_null":1,"field_type":"String","type":"Text","is_checked":1},{"key":"data","value":"","description":"数据","not_null":1,"field_type":"Object","type":"Text","is_checked":1},{"key":"data.form_template","value":"","description":"表单模版","not_null":1,"field_type":"Object","type":"Text","is_checked":1},{"key":"data.form_template.id","value":"1","description":"表单模版id","not_null":1,"field_type":"Integer","type":"Text","is_checked":1},{"key":"data.form_template.name","value":"请假流程","description":"表单模版名称","not_null":1,"field_type":"String","type":"Text","is_checked":1},{"key":"data.form_template.status","value":"1","description":"状态 0删除；1在用","not_null":1,"field_type":"Integer","type":"Text","is_checked":1},{"key":"data.form_template.content","value":"{\\\"fields\\\":[{\\\"__config__\\\":{\\\"label\\\":\\\"请假天数\\\",\\\"labelWidth\\\":null,\\\"showLabel\\\":true,\\\"changeTag\\\":true,\\\"tag\\\":\\\"el-input\\\",\\\"tagIcon\\\":\\\"input\\\",\\\"defaultValue\\\":\\\"\\\",\\\"required\\\":true,\\\"layout\\\":\\\"colFormItem\\\",\\\"span\\\":24,\\\"document\\\":\\\"https:\/\/element.eleme.cn\/#\/zh-CN\/component\/input\\\",\\\"regList\\\":[]},\\\"__slot__\\\":{\\\"prepend\\\":\\\"\\\",\\\"append\\\":\\\"\\\"},\\\"__vModel__\\\":\\\"days\\\",\\\"placeholder\\\":\\\"请输入请假天数\\\",\\\"style\\\":{\\\"width\\\":\\\"100%\\\"},\\\"clearable\\\":true,\\\"prefix-icon\\\":\\\"el-icon-mobile\\\",\\\"suffix-icon\\\":\\\"\\\",\\\"maxlength\\\":11,\\\"show-word-limit\\\":true,\\\"readonly\\\":false,\\\"disabled\\\":false},{\\\"__config__\\\":{\\\"label\\\":\\\"原因\\\",\\\"labelWidth\\\":null,\\\"showLabel\\\":true,\\\"tag\\\":\\\"el-input\\\",\\\"tagIcon\\\":\\\"textarea\\\",\\\"required\\\":true,\\\"layout\\\":\\\"colFormItem\\\",\\\"span\\\":24,\\\"regList\\\":[],\\\"changeTag\\\":true,\\\"document\\\":\\\"https:\/\/element.eleme.cn\/#\/zh-CN\/component\/input\\\",\\\"formId\\\":101,\\\"renderKey\\\":1679811891558},\\\"type\\\":\\\"textarea\\\",\\\"placeholder\\\":\\\"请输入原因\\\",\\\"autosize\\\":{\\\"minRows\\\":4,\\\"maxRows\\\":4},\\\"style\\\":{\\\"width\\\":\\\"100%\\\"},\\\"maxlength\\\":null,\\\"show-word-limit\\\":false,\\\"readonly\\\":false,\\\"disabled\\\":false,\\\"__vModel__\\\":\\\"description\\\"}],\\\"formRef\\\":\\\"qjlcbd\\\",\\\"formModel\\\":\\\"formData\\\",\\\"size\\\":\\\"medium\\\",\\\"labelPosition\\\":\\\"right\\\",\\\"labelWidth\\\":100,\\\"formRules\\\":\\\"rules\\\",\\\"gutter\\\":15,\\\"disabled\\\":false,\\\"span\\\":24,\\\"formBtns\\\":true}","description":"模版内容","not_null":1,"field_type":"String","type":"Text","is_checked":1},{"key":"data.business_data","value":"[{\"key\":\"days\",\"value\":1},{\"key\":\"description\",\"value\":\"身体不舒服\"}]","description":"业务数据","not_null":1,"field_type":"String","type":"Text","is_checked":1}],"expect":{"name":"成功","isDefault":1,"code":200,"contentType":"json","verifyType":"schema","schema":[],"mock":""}},"error":{"raw":"","parameter":[],"expect":{"name":"失败","isDefault":-1,"code":404,"contentType":"json","verifyType":"schema","schema":[],"mock":""}}},"parent_id":"17ab9d98-5ade-4b35-8e07-29241f7ec7e9"},{"local_target_id":"0563e159-9c70-4f31-8f5d-ea6a22b97c91","local_parent_id":"17ab9d98-5ade-4b35-8e07-29241f7ec7e9","name":"回退到上级","method":"POST","mark":"developing","is_doc":0,"target_type":"api","example_type":"0","project_id":"72be9d29-e4bb-4a94-9e33-1946477a7597","status":1,"sort":4,"create_dtime":1679879261,"update_dtime":1679885948,"target_id":"0563e159-9c70-4f31-8f5d-ea6a22b97c91","create_time":"2023-03-27 09:07:41","create_users":{"create_user":"张卢","update_user":"张卢"},"color":"#3A86FF","enable_server_mock":-1,"mock_server_url":"","mock_url":"","new_target_id":"9bbb781f-ff82-43fb-8c0e-bf0daa09bf38","request":{"url":"http:\/\/127.0.0.1:8201\/flow-task\/rollback-do?flowInstanceId=de7a31ad-cc3b-11ed-9709-f2d57a4703d9","description":"","body":{"mode":"none","parameter":[],"raw":"{\n    \"step01\": \"2\"\n}","raw_para":[{"key":"flowModuleId","value":"52dda21b-cbbc-11ed-8f7b-f2d57a4703d9","description":"流程模型id","not_null":1,"field_type":"String","type":"Text","is_checked":1}]},"event":{"pre_script":"","test":""},"auth":{"type":"noauth","kv":{"key":"","value":""},"bearer":{"key":""},"basic":{"username":"","password":""},"digest":{"username":"","password":"","realm":"","nonce":"","algorithm":"","qop":"","nc":"","cnonce":"","opaque":""},"hawk":{"authId":"","authKey":"","algorithm":"","user":"","nonce":"","extraData":"","app":"","delegation":"","timestamp":"","includePayloadHash":-1},"awsv4":{"accessKey":"","secretKey":"","region":"","service":"","sessionToken":"","addAuthDataToQuery":-1},"ntlm":{"username":"","password":"","domain":"","workstation":"","disableRetryRequest":1},"edgegrid":{"accessToken":"","clientToken":"","clientSecret":"","nonce":"","timestamp":"","baseURi":"","headersToSign":""},"oauth1":{"consumerKey":"","consumerSecret":"","signatureMethod":"","addEmptyParamsToSign":-1,"includeBodyHash":-1,"addParamsToHeader":-1,"realm":"","version":"1.0","nonce":"","timestamp":"","verifier":"","callback":"","tokenSecret":"","token":""}},"header":{"parameter":[]},"query":{"parameter":[{"description":"流程实例id","is_checked":1,"key":"flowInstanceId","type":"Text","not_null":1,"field_type":"String","value":"de7a31ad-cc3b-11ed-9709-f2d57a4703d9","key_var":"","value_var":""}]},"cookie":{"parameter":[]},"resful":{"parameter":[]},"url_var":"http:\/\/127.0.0.1:8201\/flow-task\/rollback-do?flowInstanceId=de7a31ad-cc3b-11ed-9709-f2d57a4703d9"},"response":{"success":{"raw":"{\n\t\"errCode\": 1000,\n\t\"errMsg\": \"Success\",\n\t\"data\": {\n\t\t\"form_template\": {\n\t\t\t\"id\": 1,\n\t\t\t\"name\": \"请假流程\",\n\t\t\t\"status\": 1,\n\t\t\t\"content\": \"{\\\\\\\"fields\\\\\\\":[{\\\\\\\"__config__\\\\\\\":{\\\\\\\"label\\\\\\\":\\\\\\\"请假天数\\\\\\\",\\\\\\\"labelWidth\\\\\\\":null,\\\\\\\"showLabel\\\\\\\":true,\\\\\\\"changeTag\\\\\\\":true,\\\\\\\"tag\\\\\\\":\\\\\\\"el-input\\\\\\\",\\\\\\\"tagIcon\\\\\\\":\\\\\\\"input\\\\\\\",\\\\\\\"defaultValue\\\\\\\":\\\\\\\"\\\\\\\",\\\\\\\"required\\\\\\\":true,\\\\\\\"layout\\\\\\\":\\\\\\\"colFormItem\\\\\\\",\\\\\\\"span\\\\\\\":24,\\\\\\\"document\\\\\\\":\\\\\\\"https:\/\/element.eleme.cn\/#\/zh-CN\/component\/input\\\\\\\",\\\\\\\"regList\\\\\\\":[]},\\\\\\\"__slot__\\\\\\\":{\\\\\\\"prepend\\\\\\\":\\\\\\\"\\\\\\\",\\\\\\\"append\\\\\\\":\\\\\\\"\\\\\\\"},\\\\\\\"__vModel__\\\\\\\":\\\\\\\"days\\\\\\\",\\\\\\\"placeholder\\\\\\\":\\\\\\\"请输入请假天数\\\\\\\",\\\\\\\"style\\\\\\\":{\\\\\\\"width\\\\\\\":\\\\\\\"100%\\\\\\\"},\\\\\\\"clearable\\\\\\\":true,\\\\\\\"prefix-icon\\\\\\\":\\\\\\\"el-icon-mobile\\\\\\\",\\\\\\\"suffix-icon\\\\\\\":\\\\\\\"\\\\\\\",\\\\\\\"maxlength\\\\\\\":11,\\\\\\\"show-word-limit\\\\\\\":true,\\\\\\\"readonly\\\\\\\":false,\\\\\\\"disabled\\\\\\\":false},{\\\\\\\"__config__\\\\\\\":{\\\\\\\"label\\\\\\\":\\\\\\\"原因\\\\\\\",\\\\\\\"labelWidth\\\\\\\":null,\\\\\\\"showLabel\\\\\\\":true,\\\\\\\"tag\\\\\\\":\\\\\\\"el-input\\\\\\\",\\\\\\\"tagIcon\\\\\\\":\\\\\\\"textarea\\\\\\\",\\\\\\\"required\\\\\\\":true,\\\\\\\"layout\\\\\\\":\\\\\\\"colFormItem\\\\\\\",\\\\\\\"span\\\\\\\":24,\\\\\\\"regList\\\\\\\":[],\\\\\\\"changeTag\\\\\\\":true,\\\\\\\"document\\\\\\\":\\\\\\\"https:\/\/element.eleme.cn\/#\/zh-CN\/component\/input\\\\\\\",\\\\\\\"formId\\\\\\\":101,\\\\\\\"renderKey\\\\\\\":1679811891558},\\\\\\\"type\\\\\\\":\\\\\\\"textarea\\\\\\\",\\\\\\\"placeholder\\\\\\\":\\\\\\\"请输入原因\\\\\\\",\\\\\\\"autosize\\\\\\\":{\\\\\\\"minRows\\\\\\\":4,\\\\\\\"maxRows\\\\\\\":4},\\\\\\\"style\\\\\\\":{\\\\\\\"width\\\\\\\":\\\\\\\"100%\\\\\\\"},\\\\\\\"maxlength\\\\\\\":null,\\\\\\\"show-word-limit\\\\\\\":false,\\\\\\\"readonly\\\\\\\":false,\\\\\\\"disabled\\\\\\\":false,\\\\\\\"__vModel__\\\\\\\":\\\\\\\"description\\\\\\\"}],\\\\\\\"formRef\\\\\\\":\\\\\\\"qjlcbd\\\\\\\",\\\\\\\"formModel\\\\\\\":\\\\\\\"formData\\\\\\\",\\\\\\\"size\\\\\\\":\\\\\\\"medium\\\\\\\",\\\\\\\"labelPosition\\\\\\\":\\\\\\\"right\\\\\\\",\\\\\\\"labelWidth\\\\\\\":100,\\\\\\\"formRules\\\\\\\":\\\\\\\"rules\\\\\\\",\\\\\\\"gutter\\\\\\\":15,\\\\\\\"disabled\\\\\\\":false,\\\\\\\"span\\\\\\\":24,\\\\\\\"formBtns\\\\\\\":true}\"\n\t\t},\n\t\t\"business_data\": \"[{\\\"key\\\":\\\"days\\\",\\\"value\\\":1},{\\\"key\\\":\\\"description\\\",\\\"value\\\":\\\"身体不舒服\\\"}]\"\n\t}\n}","parameter":[{"key":"errCode","value":"1000","description":"1000成功标志，其他都是失败","not_null":1,"field_type":"Integer","type":"Text","is_checked":1},{"key":"errMsg","value":"Success","description":"","not_null":1,"field_type":"String","type":"Text","is_checked":1},{"key":"data","value":"","description":"数据","not_null":1,"field_type":"Object","type":"Text","is_checked":1},{"key":"data.form_template","value":"","description":"表单模版","not_null":1,"field_type":"Object","type":"Text","is_checked":1},{"key":"data.form_template.id","value":"1","description":"表单模版id","not_null":1,"field_type":"Integer","type":"Text","is_checked":1},{"key":"data.form_template.name","value":"请假流程","description":"表单模版名称","not_null":1,"field_type":"String","type":"Text","is_checked":1},{"key":"data.form_template.status","value":"1","description":"状态 0删除；1在用","not_null":1,"field_type":"Integer","type":"Text","is_checked":1},{"key":"data.form_template.content","value":"{\\\"fields\\\":[{\\\"__config__\\\":{\\\"label\\\":\\\"请假天数\\\",\\\"labelWidth\\\":null,\\\"showLabel\\\":true,\\\"changeTag\\\":true,\\\"tag\\\":\\\"el-input\\\",\\\"tagIcon\\\":\\\"input\\\",\\\"defaultValue\\\":\\\"\\\",\\\"required\\\":true,\\\"layout\\\":\\\"colFormItem\\\",\\\"span\\\":24,\\\"document\\\":\\\"https:\/\/element.eleme.cn\/#\/zh-CN\/component\/input\\\",\\\"regList\\\":[]},\\\"__slot__\\\":{\\\"prepend\\\":\\\"\\\",\\\"append\\\":\\\"\\\"},\\\"__vModel__\\\":\\\"days\\\",\\\"placeholder\\\":\\\"请输入请假天数\\\",\\\"style\\\":{\\\"width\\\":\\\"100%\\\"},\\\"clearable\\\":true,\\\"prefix-icon\\\":\\\"el-icon-mobile\\\",\\\"suffix-icon\\\":\\\"\\\",\\\"maxlength\\\":11,\\\"show-word-limit\\\":true,\\\"readonly\\\":false,\\\"disabled\\\":false},{\\\"__config__\\\":{\\\"label\\\":\\\"原因\\\",\\\"labelWidth\\\":null,\\\"showLabel\\\":true,\\\"tag\\\":\\\"el-input\\\",\\\"tagIcon\\\":\\\"textarea\\\",\\\"required\\\":true,\\\"layout\\\":\\\"colFormItem\\\",\\\"span\\\":24,\\\"regList\\\":[],\\\"changeTag\\\":true,\\\"document\\\":\\\"https:\/\/element.eleme.cn\/#\/zh-CN\/component\/input\\\",\\\"formId\\\":101,\\\"renderKey\\\":1679811891558},\\\"type\\\":\\\"textarea\\\",\\\"placeholder\\\":\\\"请输入原因\\\",\\\"autosize\\\":{\\\"minRows\\\":4,\\\"maxRows\\\":4},\\\"style\\\":{\\\"width\\\":\\\"100%\\\"},\\\"maxlength\\\":null,\\\"show-word-limit\\\":false,\\\"readonly\\\":false,\\\"disabled\\\":false,\\\"__vModel__\\\":\\\"description\\\"}],\\\"formRef\\\":\\\"qjlcbd\\\",\\\"formModel\\\":\\\"formData\\\",\\\"size\\\":\\\"medium\\\",\\\"labelPosition\\\":\\\"right\\\",\\\"labelWidth\\\":100,\\\"formRules\\\":\\\"rules\\\",\\\"gutter\\\":15,\\\"disabled\\\":false,\\\"span\\\":24,\\\"formBtns\\\":true}","description":"模版内容","not_null":1,"field_type":"String","type":"Text","is_checked":1},{"key":"data.business_data","value":"[{\"key\":\"days\",\"value\":1},{\"key\":\"description\",\"value\":\"身体不舒服\"}]","description":"业务数据","not_null":1,"field_type":"String","type":"Text","is_checked":1}],"expect":{"name":"成功","isDefault":1,"code":200,"contentType":"json","verifyType":"schema","schema":[],"mock":""}},"error":{"raw":"","parameter":[],"expect":{"name":"失败","isDefault":-1,"code":404,"contentType":"json","verifyType":"schema","schema":[],"mock":""}}},"parent_id":"17ab9d98-5ade-4b35-8e07-29241f7ec7e9"},{"local_target_id":"1f32c4e2-c320-4d29-b59c-01d417e38a92","local_parent_id":"17ab9d98-5ade-4b35-8e07-29241f7ec7e9","name":"驳回","method":"POST","mark":"developing","is_doc":0,"target_type":"api","example_type":"0","project_id":"72be9d29-e4bb-4a94-9e33-1946477a7597","status":1,"sort":5,"create_dtime":1679879284,"update_dtime":1679885949,"target_id":"1f32c4e2-c320-4d29-b59c-01d417e38a92","create_time":"2023-03-27 09:08:04","create_users":{"create_user":"张卢","update_user":"张卢"},"color":"#3A86FF","enable_server_mock":-1,"mock_server_url":"","mock_url":"","new_target_id":"b38658ad-00dc-4b91-bc4f-4081c1354a5b","request":{"url":"http:\/\/127.0.0.1:8201\/flow-task\/reject-do?flowInstanceId=cd9a949c-cbcc-11ed-b625-f2d57a4703d9","description":"","body":{"mode":"none","parameter":[],"raw":"{\n    \"step01\": \"2\"\n}","raw_para":[{"key":"flowModuleId","value":"52dda21b-cbbc-11ed-8f7b-f2d57a4703d9","description":"流程模型id","not_null":1,"field_type":"String","type":"Text","is_checked":1}]},"event":{"pre_script":"","test":""},"auth":{"type":"noauth","kv":{"key":"","value":""},"bearer":{"key":""},"basic":{"username":"","password":""},"digest":{"username":"","password":"","realm":"","nonce":"","algorithm":"","qop":"","nc":"","cnonce":"","opaque":""},"hawk":{"authId":"","authKey":"","algorithm":"","user":"","nonce":"","extraData":"","app":"","delegation":"","timestamp":"","includePayloadHash":-1},"awsv4":{"accessKey":"","secretKey":"","region":"","service":"","sessionToken":"","addAuthDataToQuery":-1},"ntlm":{"username":"","password":"","domain":"","workstation":"","disableRetryRequest":1},"edgegrid":{"accessToken":"","clientToken":"","clientSecret":"","nonce":"","timestamp":"","baseURi":"","headersToSign":""},"oauth1":{"consumerKey":"","consumerSecret":"","signatureMethod":"","addEmptyParamsToSign":-1,"includeBodyHash":-1,"addParamsToHeader":-1,"realm":"","version":"1.0","nonce":"","timestamp":"","verifier":"","callback":"","tokenSecret":"","token":""}},"header":{"parameter":[]},"query":{"parameter":[{"description":"流程实例id","is_checked":1,"key":"flowInstanceId","type":"Text","not_null":1,"field_type":"String","value":"cd9a949c-cbcc-11ed-b625-f2d57a4703d9","key_var":"","value_var":""}]},"cookie":{"parameter":[]},"resful":{"parameter":[]},"url_var":"http:\/\/127.0.0.1:8201\/flow-task\/reject-do?flowInstanceId=cd9a949c-cbcc-11ed-b625-f2d57a4703d9"},"response":{"success":{"raw":"{\n\t\"errCode\": 1000,\n\t\"errMsg\": \"Success\",\n\t\"data\": {\n\t\t\"form_template\": {\n\t\t\t\"id\": 1,\n\t\t\t\"name\": \"请假流程\",\n\t\t\t\"status\": 1,\n\t\t\t\"content\": \"{\\\\\\\"fields\\\\\\\":[{\\\\\\\"__config__\\\\\\\":{\\\\\\\"label\\\\\\\":\\\\\\\"请假天数\\\\\\\",\\\\\\\"labelWidth\\\\\\\":null,\\\\\\\"showLabel\\\\\\\":true,\\\\\\\"changeTag\\\\\\\":true,\\\\\\\"tag\\\\\\\":\\\\\\\"el-input\\\\\\\",\\\\\\\"tagIcon\\\\\\\":\\\\\\\"input\\\\\\\",\\\\\\\"defaultValue\\\\\\\":\\\\\\\"\\\\\\\",\\\\\\\"required\\\\\\\":true,\\\\\\\"layout\\\\\\\":\\\\\\\"colFormItem\\\\\\\",\\\\\\\"span\\\\\\\":24,\\\\\\\"document\\\\\\\":\\\\\\\"https:\/\/element.eleme.cn\/#\/zh-CN\/component\/input\\\\\\\",\\\\\\\"regList\\\\\\\":[]},\\\\\\\"__slot__\\\\\\\":{\\\\\\\"prepend\\\\\\\":\\\\\\\"\\\\\\\",\\\\\\\"append\\\\\\\":\\\\\\\"\\\\\\\"},\\\\\\\"__vModel__\\\\\\\":\\\\\\\"days\\\\\\\",\\\\\\\"placeholder\\\\\\\":\\\\\\\"请输入请假天数\\\\\\\",\\\\\\\"style\\\\\\\":{\\\\\\\"width\\\\\\\":\\\\\\\"100%\\\\\\\"},\\\\\\\"clearable\\\\\\\":true,\\\\\\\"prefix-icon\\\\\\\":\\\\\\\"el-icon-mobile\\\\\\\",\\\\\\\"suffix-icon\\\\\\\":\\\\\\\"\\\\\\\",\\\\\\\"maxlength\\\\\\\":11,\\\\\\\"show-word-limit\\\\\\\":true,\\\\\\\"readonly\\\\\\\":false,\\\\\\\"disabled\\\\\\\":false},{\\\\\\\"__config__\\\\\\\":{\\\\\\\"label\\\\\\\":\\\\\\\"原因\\\\\\\",\\\\\\\"labelWidth\\\\\\\":null,\\\\\\\"showLabel\\\\\\\":true,\\\\\\\"tag\\\\\\\":\\\\\\\"el-input\\\\\\\",\\\\\\\"tagIcon\\\\\\\":\\\\\\\"textarea\\\\\\\",\\\\\\\"required\\\\\\\":true,\\\\\\\"layout\\\\\\\":\\\\\\\"colFormItem\\\\\\\",\\\\\\\"span\\\\\\\":24,\\\\\\\"regList\\\\\\\":[],\\\\\\\"changeTag\\\\\\\":true,\\\\\\\"document\\\\\\\":\\\\\\\"https:\/\/element.eleme.cn\/#\/zh-CN\/component\/input\\\\\\\",\\\\\\\"formId\\\\\\\":101,\\\\\\\"renderKey\\\\\\\":1679811891558},\\\\\\\"type\\\\\\\":\\\\\\\"textarea\\\\\\\",\\\\\\\"placeholder\\\\\\\":\\\\\\\"请输入原因\\\\\\\",\\\\\\\"autosize\\\\\\\":{\\\\\\\"minRows\\\\\\\":4,\\\\\\\"maxRows\\\\\\\":4},\\\\\\\"style\\\\\\\":{\\\\\\\"width\\\\\\\":\\\\\\\"100%\\\\\\\"},\\\\\\\"maxlength\\\\\\\":null,\\\\\\\"show-word-limit\\\\\\\":false,\\\\\\\"readonly\\\\\\\":false,\\\\\\\"disabled\\\\\\\":false,\\\\\\\"__vModel__\\\\\\\":\\\\\\\"description\\\\\\\"}],\\\\\\\"formRef\\\\\\\":\\\\\\\"qjlcbd\\\\\\\",\\\\\\\"formModel\\\\\\\":\\\\\\\"formData\\\\\\\",\\\\\\\"size\\\\\\\":\\\\\\\"medium\\\\\\\",\\\\\\\"labelPosition\\\\\\\":\\\\\\\"right\\\\\\\",\\\\\\\"labelWidth\\\\\\\":100,\\\\\\\"formRules\\\\\\\":\\\\\\\"rules\\\\\\\",\\\\\\\"gutter\\\\\\\":15,\\\\\\\"disabled\\\\\\\":false,\\\\\\\"span\\\\\\\":24,\\\\\\\"formBtns\\\\\\\":true}\"\n\t\t},\n\t\t\"business_data\": \"[{\\\"key\\\":\\\"days\\\",\\\"value\\\":1},{\\\"key\\\":\\\"description\\\",\\\"value\\\":\\\"身体不舒服\\\"}]\"\n\t}\n}","parameter":[{"key":"errCode","value":"1000","description":"1000成功标志，其他都是失败","not_null":1,"field_type":"Integer","type":"Text","is_checked":1},{"key":"errMsg","value":"Success","description":"","not_null":1,"field_type":"String","type":"Text","is_checked":1},{"key":"data","value":"","description":"数据","not_null":1,"field_type":"Object","type":"Text","is_checked":1},{"key":"data.form_template","value":"","description":"表单模版","not_null":1,"field_type":"Object","type":"Text","is_checked":1},{"key":"data.form_template.id","value":"1","description":"表单模版id","not_null":1,"field_type":"Integer","type":"Text","is_checked":1},{"key":"data.form_template.name","value":"请假流程","description":"表单模版名称","not_null":1,"field_type":"String","type":"Text","is_checked":1},{"key":"data.form_template.status","value":"1","description":"状态 0删除；1在用","not_null":1,"field_type":"Integer","type":"Text","is_checked":1},{"key":"data.form_template.content","value":"{\\\"fields\\\":[{\\\"__config__\\\":{\\\"label\\\":\\\"请假天数\\\",\\\"labelWidth\\\":null,\\\"showLabel\\\":true,\\\"changeTag\\\":true,\\\"tag\\\":\\\"el-input\\\",\\\"tagIcon\\\":\\\"input\\\",\\\"defaultValue\\\":\\\"\\\",\\\"required\\\":true,\\\"layout\\\":\\\"colFormItem\\\",\\\"span\\\":24,\\\"document\\\":\\\"https:\/\/element.eleme.cn\/#\/zh-CN\/component\/input\\\",\\\"regList\\\":[]},\\\"__slot__\\\":{\\\"prepend\\\":\\\"\\\",\\\"append\\\":\\\"\\\"},\\\"__vModel__\\\":\\\"days\\\",\\\"placeholder\\\":\\\"请输入请假天数\\\",\\\"style\\\":{\\\"width\\\":\\\"100%\\\"},\\\"clearable\\\":true,\\\"prefix-icon\\\":\\\"el-icon-mobile\\\",\\\"suffix-icon\\\":\\\"\\\",\\\"maxlength\\\":11,\\\"show-word-limit\\\":true,\\\"readonly\\\":false,\\\"disabled\\\":false},{\\\"__config__\\\":{\\\"label\\\":\\\"原因\\\",\\\"labelWidth\\\":null,\\\"showLabel\\\":true,\\\"tag\\\":\\\"el-input\\\",\\\"tagIcon\\\":\\\"textarea\\\",\\\"required\\\":true,\\\"layout\\\":\\\"colFormItem\\\",\\\"span\\\":24,\\\"regList\\\":[],\\\"changeTag\\\":true,\\\"document\\\":\\\"https:\/\/element.eleme.cn\/#\/zh-CN\/component\/input\\\",\\\"formId\\\":101,\\\"renderKey\\\":1679811891558},\\\"type\\\":\\\"textarea\\\",\\\"placeholder\\\":\\\"请输入原因\\\",\\\"autosize\\\":{\\\"minRows\\\":4,\\\"maxRows\\\":4},\\\"style\\\":{\\\"width\\\":\\\"100%\\\"},\\\"maxlength\\\":null,\\\"show-word-limit\\\":false,\\\"readonly\\\":false,\\\"disabled\\\":false,\\\"__vModel__\\\":\\\"description\\\"}],\\\"formRef\\\":\\\"qjlcbd\\\",\\\"formModel\\\":\\\"formData\\\",\\\"size\\\":\\\"medium\\\",\\\"labelPosition\\\":\\\"right\\\",\\\"labelWidth\\\":100,\\\"formRules\\\":\\\"rules\\\",\\\"gutter\\\":15,\\\"disabled\\\":false,\\\"span\\\":24,\\\"formBtns\\\":true}","description":"模版内容","not_null":1,"field_type":"String","type":"Text","is_checked":1},{"key":"data.business_data","value":"[{\"key\":\"days\",\"value\":1},{\"key\":\"description\",\"value\":\"身体不舒服\"}]","description":"业务数据","not_null":1,"field_type":"String","type":"Text","is_checked":1}],"expect":{"name":"成功","isDefault":1,"code":200,"contentType":"json","verifyType":"schema","schema":[],"mock":""}},"error":{"raw":"","parameter":[],"expect":{"name":"失败","isDefault":-1,"code":404,"contentType":"json","verifyType":"schema","schema":[],"mock":""}}},"parent_id":"17ab9d98-5ade-4b35-8e07-29241f7ec7e9"},{"local_target_id":"ade170ce-1451-4d5a-9d26-6b7682e3923c","local_parent_id":"17ab9d98-5ade-4b35-8e07-29241f7ec7e9","name":"获取流程实例列表","method":"POST","mark":"developing","is_doc":0,"target_type":"api","example_type":"0","project_id":"72be9d29-e4bb-4a94-9e33-1946477a7597","status":1,"sort":6,"create_dtime":1679827030,"update_dtime":1679885944,"target_id":"ade170ce-1451-4d5a-9d26-6b7682e3923c","create_time":"2023-03-26 18:37:10","create_users":{"create_user":"张卢","update_user":"张卢"},"color":"#3A86FF","enable_server_mock":-1,"mock_server_url":"","mock_url":"","new_target_id":"ed0ffa0a-cbca-4eb3-ac1c-94a045049d3d","request":{"url":"http:\/\/127.0.0.1:8201\/flow-task\/get\/process-instance\/list","description":"","body":{"mode":"json","parameter":[],"raw":"{\n    \"current\": 1,\n    \"size\": 10\n}","raw_para":[{"key":"current","value":"1","description":"页码","not_null":1,"field_type":"Integer","type":"Text","is_checked":1},{"key":"size","value":"10","description":"页偏移量","not_null":1,"field_type":"Integer","type":"Text","is_checked":1}]},"event":{"pre_script":"","test":""},"auth":{"type":"noauth","kv":{"key":"","value":""},"bearer":{"key":""},"basic":{"username":"","password":""},"digest":{"username":"","password":"","realm":"","nonce":"","algorithm":"","qop":"","nc":"","cnonce":"","opaque":""},"hawk":{"authId":"","authKey":"","algorithm":"","user":"","nonce":"","extraData":"","app":"","delegation":"","timestamp":"","includePayloadHash":-1},"awsv4":{"accessKey":"","secretKey":"","region":"","service":"","sessionToken":"","addAuthDataToQuery":-1},"ntlm":{"username":"","password":"","domain":"","workstation":"","disableRetryRequest":1},"edgegrid":{"accessToken":"","clientToken":"","clientSecret":"","nonce":"","timestamp":"","baseURi":"","headersToSign":""},"oauth1":{"consumerKey":"","consumerSecret":"","signatureMethod":"","addEmptyParamsToSign":-1,"includeBodyHash":-1,"addParamsToHeader":-1,"realm":"","version":"1.0","nonce":"","timestamp":"","verifier":"","callback":"","tokenSecret":"","token":""}},"header":{"parameter":[]},"query":{"parameter":[]},"cookie":{"parameter":[]},"resful":{"parameter":[]},"url_var":"http:\/\/127.0.0.1:8201\/flow-task\/get\/process-instance\/list"},"response":{"success":{"raw":"{\n\t\"errCode\": 1000,\n\t\"errMsg\": \"Success\",\n\t\"data\": {\n\t\t\"records\": [\n\t\t\t{\n\t\t\t\t\"id\": 1,\n\t\t\t\t\"tenant\": \"testTenant\",\n\t\t\t\t\"caller\": \"testCaller\",\n\t\t\t\t\"createTime\": 1679820393000,\n\t\t\t\t\"archive\": 0,\n\t\t\t\t\"flowInstanceId\": \"b5bfb397-cbb2-11ed-a2f9-f2d57a4703d9\",\n\t\t\t\t\"flowDeployId\": \"b5bc0a16-cbb2-11ed-a2f9-f2d57a4703d9\",\n\t\t\t\t\"flowModuleId\": \"b5affc25-cbb2-11ed-a2f9-f2d57a4703d9\",\n\t\t\t\t\"status\": 1,\n\t\t\t\t\"modifyTime\": 1679820394000\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"id\": 2,\n\t\t\t\t\"tenant\": \"testTenant\",\n\t\t\t\t\"caller\": \"testCaller\",\n\t\t\t\t\"createTime\": 1679825745000,\n\t\t\t\t\"archive\": 0,\n\t\t\t\t\"flowInstanceId\": \"2bd5ff2f-cbbf-11ed-8f7b-f2d57a4703d9\",\n\t\t\t\t\"flowDeployId\": \"020ada55-cbb8-11ed-a2f9-f2d57a4703d9\",\n\t\t\t\t\"flowModuleId\": \"21455a0b-cbac-11ed-9f32-f2d57a4703d9\",\n\t\t\t\t\"status\": 2,\n\t\t\t\t\"modifyTime\": 1679825745000\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"id\": 3,\n\t\t\t\t\"tenant\": \"testTenant\",\n\t\t\t\t\"caller\": \"testCaller\",\n\t\t\t\t\"createTime\": 1679826027000,\n\t\t\t\t\"archive\": 0,\n\t\t\t\t\"flowInstanceId\": \"d40039f7-cbbf-11ed-aeba-f2d57a4703d9\",\n\t\t\t\t\"flowDeployId\": \"020ada55-cbb8-11ed-a2f9-f2d57a4703d9\",\n\t\t\t\t\"flowModuleId\": \"21455a0b-cbac-11ed-9f32-f2d57a4703d9\",\n\t\t\t\t\"status\": 2,\n\t\t\t\t\"modifyTime\": 1679826027000\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"id\": 4,\n\t\t\t\t\"tenant\": \"testTenant\",\n\t\t\t\t\"caller\": \"testCaller\",\n\t\t\t\t\"createTime\": 1679826171000,\n\t\t\t\t\"archive\": 0,\n\t\t\t\t\"flowInstanceId\": \"297caf7e-cbc0-11ed-89e7-f2d57a4703d9\",\n\t\t\t\t\"flowDeployId\": \"020ada55-cbb8-11ed-a2f9-f2d57a4703d9\",\n\t\t\t\t\"flowModuleId\": \"21455a0b-cbac-11ed-9f32-f2d57a4703d9\",\n\t\t\t\t\"status\": 2,\n\t\t\t\t\"modifyTime\": 1679826171000\n\t\t\t}\n\t\t],\n\t\t\"total\": 4,\n\t\t\"size\": 10,\n\t\t\"current\": 1,\n\t\t\"orders\": [],\n\t\t\"searchCount\": true,\n\t\t\"pages\": 1\n\t}\n}","parameter":[{"key":"errCode","value":"1000","description":"1000成功标志，其他都是失败","not_null":1,"field_type":"Integer","type":"Text","is_checked":1},{"key":"errMsg","value":"Success","description":"","not_null":1,"field_type":"String","type":"Text","is_checked":1},{"key":"data","value":"","description":"数据","not_null":1,"field_type":"Object","type":"Text","is_checked":1},{"key":"data.records","value":"","description":"","not_null":1,"field_type":"Array","type":"Text","is_checked":1},{"key":"data.records.id","value":"1","description":"id","not_null":1,"field_type":"Integer","type":"Text","is_checked":1},{"key":"data.records.tenant","value":"testTenant","description":"租户","not_null":1,"field_type":"String","type":"Text","is_checked":1},{"key":"data.records.caller","value":"testCaller","description":"调用方","not_null":1,"field_type":"String","type":"Text","is_checked":1},{"key":"data.records.createTime","value":"1679820393000","description":"创建时间","not_null":1,"field_type":"Integer","type":"Text","is_checked":1},{"key":"data.records.archive","value":"0","description":"归档状态(0未删除，1删除)","not_null":1,"field_type":"Integer","type":"Text","is_checked":1},{"key":"data.records.flowInstanceId","value":"b5bfb397-cbb2-11ed-a2f9-f2d57a4703d9","description":"流程实例id","not_null":1,"field_type":"String","type":"Text","is_checked":1},{"key":"data.records.flowDeployId","value":"b5bc0a16-cbb2-11ed-a2f9-f2d57a4703d9","description":"流程发布id","not_null":1,"field_type":"String","type":"Text","is_checked":1},{"key":"data.records.flowModuleId","value":"b5affc25-cbb2-11ed-a2f9-f2d57a4703d9","description":"流程模型id","not_null":1,"field_type":"String","type":"Text","is_checked":1},{"key":"data.records.status","value":"1","description":"状态(1.执行完成 2.执行中 3.执行终止(强制终止))","not_null":1,"field_type":"Integer","type":"Text","is_checked":1},{"key":"data.records.modifyTime","value":"1679820394000","description":"更新时间","not_null":1,"field_type":"Integer","type":"Text","is_checked":1},{"key":"data.total","value":"4","description":"总数","not_null":1,"field_type":"Integer","type":"Text","is_checked":1},{"key":"data.size","value":"10","description":"页偏移量","not_null":1,"field_type":"Integer","type":"Text","is_checked":1},{"key":"data.current","value":"1","description":"页码","not_null":1,"field_type":"Integer","type":"Text","is_checked":1},{"key":"data.orders","value":"","description":"","not_null":1,"field_type":"Array","type":"Text","is_checked":1},{"key":"data.searchCount","value":"true","description":"","not_null":1,"field_type":"Boolean","type":"Text","is_checked":1},{"key":"data.pages","value":"1","description":"","not_null":1,"field_type":"Integer","type":"Text","is_checked":1}],"expect":{"name":"成功","isDefault":1,"code":200,"contentType":"json","verifyType":"schema","schema":[],"mock":""}},"error":{"raw":"","parameter":[],"expect":{"name":"失败","isDefault":-1,"code":404,"contentType":"json","verifyType":"schema","schema":[],"mock":""}}},"parent_id":"17ab9d98-5ade-4b35-8e07-29241f7ec7e9"},{"local_target_id":"423ba268-bc15-44e7-9ef8-2d57e429517f","local_parent_id":"17ab9d98-5ade-4b35-8e07-29241f7ec7e9","name":"查看当前流程详情","method":"GET","mark":"developing","is_doc":0,"target_type":"api","example_type":"0","project_id":"72be9d29-e4bb-4a94-9e33-1946477a7597","status":1,"sort":7,"create_dtime":1679926830,"update_dtime":1679929451,"target_id":"423ba268-bc15-44e7-9ef8-2d57e429517f","create_time":"2023-03-27 22:20:30","create_users":{"create_user":"张卢","update_user":"张卢"},"color":"#3A86FF","enable_server_mock":-1,"mock_server_url":"","mock_url":"","new_target_id":"00e01483-3c79-4f81-9ae7-9953b854dcb7","request":{"url":"http:\/\/127.0.0.1:8201\/flow-task\/current-detail?flowInstanceId=4199be3f-cca8-11ed-bd84-f2d57a4703d9","description":"","body":{"mode":"none","parameter":[],"raw":"","raw_para":[{"key":"flowModuleId","value":"52dda21b-cbbc-11ed-8f7b-f2d57a4703d9","description":"流程模型id","not_null":1,"field_type":"String","type":"Text","is_checked":1}]},"event":{"pre_script":"","test":""},"auth":{"type":"noauth","kv":{"key":"","value":""},"bearer":{"key":""},"basic":{"username":"","password":""},"digest":{"username":"","password":"","realm":"","nonce":"","algorithm":"","qop":"","nc":"","cnonce":"","opaque":""},"hawk":{"authId":"","authKey":"","algorithm":"","user":"","nonce":"","extraData":"","app":"","delegation":"","timestamp":"","includePayloadHash":-1},"awsv4":{"accessKey":"","secretKey":"","region":"","service":"","sessionToken":"","addAuthDataToQuery":-1},"ntlm":{"username":"","password":"","domain":"","workstation":"","disableRetryRequest":1},"edgegrid":{"accessToken":"","clientToken":"","clientSecret":"","nonce":"","timestamp":"","baseURi":"","headersToSign":""},"oauth1":{"consumerKey":"","consumerSecret":"","signatureMethod":"","addEmptyParamsToSign":-1,"includeBodyHash":-1,"addParamsToHeader":-1,"realm":"","version":"1.0","nonce":"","timestamp":"","verifier":"","callback":"","tokenSecret":"","token":""}},"header":{"parameter":[]},"query":{"parameter":[{"description":"流程实例id","is_checked":1,"key":"flowInstanceId","type":"Text","not_null":1,"field_type":"String","value":"4199be3f-cca8-11ed-bd84-f2d57a4703d9","key_var":"","value_var":""}]},"cookie":{"parameter":[]},"resful":{"parameter":[]},"url_var":"http:\/\/127.0.0.1:8201\/flow-task\/current-detail?flowInstanceId=4199be3f-cca8-11ed-bd84-f2d57a4703d9"},"response":{"success":{"raw":"{\n    \"errCode\": 1000,\n    \"errMsg\": \"Success\",\n    \"data\": {\n        \"flowDeployment\": {\n            \"id\": 8,\n            \"tenant\": \"testTenant\",\n            \"caller\": \"testCaller\",\n            \"createTime\": 1679916325000,\n            \"archive\": 0,\n            \"operator\": \"lu\",\n            \"modifyTime\": 1679921805000,\n            \"remark\": \"\",\n            \"flowDeployId\": \"0ecac7a5-cc9f-11ed-a5b5-f2d57a4703d9\",\n            \"flowModuleId\": \"118ce103-cc92-11ed-a9ed-f2d57a4703d9\",\n            \"flowName\": \"作业票开票审批流程\",\n            \"flowKey\": \"zypsplc\",\n            \"flowModel\": \"{\\\"flowElementList\\\":[{\\\"incoming\\\":[],\\\"outgoing\\\":[\\\"Flow_13am9ue\\\"],\\\"dockers\\\":[],\\\"type\\\":2,\\\"properties\\\":{\\\"name\\\":\\\"开始\\\",\\\"form_template_id\\\":2,\\\"x\\\":220,\\\"y\\\":300,\\\"text\\\":{\\\"x\\\":220,\\\"y\\\":340,\\\"value\\\":\\\"开始\\\"}},\\\"key\\\":\\\"Event_0etvhi1\\\"},{\\\"incoming\\\":[\\\"Flow_13am9ue\\\"],\\\"outgoing\\\":[\\\"Flow_0s6i8kj\\\"],\\\"dockers\\\":[],\\\"type\\\":4,\\\"properties\\\":{\\\"name\\\":\\\"班组负责人上报\\\",\\\"form_template_id\\\":2,\\\"x\\\":450,\\\"y\\\":300,\\\"text\\\":{\\\"x\\\":450,\\\"y\\\":300,\\\"value\\\":\\\"班组负责人上报\\\"}},\\\"key\\\":\\\"Activity_027d0rv\\\"},{\\\"incoming\\\":[\\\"Flow_0s6i8kj\\\"],\\\"outgoing\\\":[\\\"Flow_3ruskhh\\\"],\\\"dockers\\\":[],\\\"type\\\":4,\\\"properties\\\":{\\\"name\\\":\\\"施工项目经理上报\\\",\\\"form_template_id\\\":2,\\\"x\\\":700,\\\"y\\\":300,\\\"text\\\":{\\\"x\\\":700,\\\"y\\\":300,\\\"value\\\":\\\"施工项目经理上报\\\"}},\\\"key\\\":\\\"Activity_3b36jgt\\\"},{\\\"incoming\\\":[\\\"Flow_3ruskhh\\\"],\\\"outgoing\\\":[\\\"Flow_1kdeshv\\\",\\\"Flow_1hajbcs\\\"],\\\"dockers\\\":[],\\\"type\\\":6,\\\"properties\\\":{\\\"name\\\":\\\"单一网关\\\",\\\"form_template_id\\\":2,\\\"x\\\":870,\\\"y\\\":300,\\\"text\\\":{\\\"x\\\":870,\\\"y\\\":300,\\\"value\\\":\\\"单一网关\\\"}},\\\"key\\\":\\\"Gateway_335ghsi\\\"},{\\\"incoming\\\":[\\\"Flow_1kdeshv\\\"],\\\"outgoing\\\":[\\\"Flow_1f91tq0\\\"],\\\"dockers\\\":[],\\\"type\\\":4,\\\"properties\\\":{\\\"name\\\":\\\"监理项目部管理员上报\\\",\\\"form_template_id\\\":2,\\\"x\\\":1140,\\\"y\\\":300,\\\"text\\\":{\\\"x\\\":1140,\\\"y\\\":300,\\\"value\\\":\\\"监理项目部管理员上报\\\"}},\\\"key\\\":\\\"Activity_0ag852a\\\"},{\\\"incoming\\\":[\\\"Flow_1f91tq0\\\",\\\"Flow_1hajbcs\\\"],\\\"outgoing\\\":[],\\\"dockers\\\":[],\\\"type\\\":3,\\\"properties\\\":{\\\"name\\\":\\\"结束\\\",\\\"form_template_id\\\":2,\\\"x\\\":1400,\\\"y\\\":300,\\\"text\\\":{\\\"x\\\":1400,\\\"y\\\":340,\\\"value\\\":\\\"结束\\\"}},\\\"key\\\":\\\"Event_0e4i4kg\\\"},{\\\"incoming\\\":[\\\"Event_0etvhi1\\\"],\\\"outgoing\\\":[\\\"Activity_027d0rv\\\"],\\\"type\\\":1,\\\"dockers\\\":[],\\\"properties\\\":{\\\"name\\\":\\\"\\\",\\\"form_template_id\\\":2,\\\"text\\\":\\\"\\\",\\\"startPoint\\\":\\\"{\\\\\\\"x\\\\\\\":238,\\\\\\\"y\\\\\\\":300}\\\",\\\"endPoint\\\":\\\"{\\\\\\\"x\\\\\\\":400,\\\\\\\"y\\\\\\\":300}\\\",\\\"pointsList\\\":\\\"[{\\\\\\\"x\\\\\\\":238,\\\\\\\"y\\\\\\\":300},{\\\\\\\"x\\\\\\\":400,\\\\\\\"y\\\\\\\":300}]\\\"},\\\"key\\\":\\\"Flow_13am9ue\\\"},{\\\"incoming\\\":[\\\"Activity_027d0rv\\\"],\\\"outgoing\\\":[\\\"Activity_3b36jgt\\\"],\\\"type\\\":1,\\\"dockers\\\":[],\\\"properties\\\":{\\\"name\\\":\\\"\\\",\\\"form_template_id\\\":2,\\\"text\\\":\\\"\\\",\\\"startPoint\\\":\\\"{\\\\\\\"x\\\\\\\":500,\\\\\\\"y\\\\\\\":300}\\\",\\\"endPoint\\\":\\\"{\\\\\\\"x\\\\\\\":650,\\\\\\\"y\\\\\\\":300}\\\",\\\"pointsList\\\":\\\"[{\\\\\\\"x\\\\\\\":500,\\\\\\\"y\\\\\\\":300},{\\\\\\\"x\\\\\\\":650,\\\\\\\"y\\\\\\\":300}]\\\"},\\\"key\\\":\\\"Flow_0s6i8kj\\\"},{\\\"incoming\\\":[\\\"Activity_3b36jgt\\\"],\\\"outgoing\\\":[\\\"Gateway_335ghsi\\\"],\\\"type\\\":1,\\\"dockers\\\":[],\\\"properties\\\":{\\\"name\\\":\\\"\\\",\\\"form_template_id\\\":2,\\\"text\\\":\\\"\\\",\\\"startPoint\\\":\\\"{\\\\\\\"x\\\\\\\":750,\\\\\\\"y\\\\\\\":300}\\\",\\\"endPoint\\\":\\\"{\\\\\\\"x\\\\\\\":845,\\\\\\\"y\\\\\\\":300}\\\",\\\"pointsList\\\":\\\"[{\\\\\\\"x\\\\\\\":750,\\\\\\\"y\\\\\\\":300},{\\\\\\\"x\\\\\\\":845,\\\\\\\"y\\\\\\\":300}]\\\"},\\\"key\\\":\\\"Flow_3ruskhh\\\"},{\\\"incoming\\\":[\\\"Gateway_335ghsi\\\"],\\\"outgoing\\\":[\\\"Activity_0ag852a\\\"],\\\"type\\\":1,\\\"dockers\\\":[],\\\"properties\\\":{\\\"conditionsequenceflow\\\":\\\"ticketType=='B'\\\",\\\"name\\\":\\\"\\\",\\\"form_template_id\\\":2,\\\"text\\\":\\\"\\\",\\\"startPoint\\\":\\\"{\\\\\\\"x\\\\\\\":895,\\\\\\\"y\\\\\\\":300}\\\",\\\"endPoint\\\":\\\"{\\\\\\\"x\\\\\\\":1090,\\\\\\\"y\\\\\\\":300}\\\",\\\"pointsList\\\":\\\"[{\\\\\\\"x\\\\\\\":895,\\\\\\\"y\\\\\\\":300},{\\\\\\\"x\\\\\\\":1090,\\\\\\\"y\\\\\\\":300}]\\\"},\\\"key\\\":\\\"Flow_1kdeshv\\\"},{\\\"incoming\\\":[\\\"Activity_0ag852a\\\"],\\\"outgoing\\\":[\\\"Event_0e4i4kg\\\"],\\\"type\\\":1,\\\"dockers\\\":[],\\\"properties\\\":{\\\"name\\\":\\\"\\\",\\\"form_template_id\\\":2,\\\"text\\\":\\\"\\\",\\\"startPoint\\\":\\\"{\\\\\\\"x\\\\\\\":1190,\\\\\\\"y\\\\\\\":300}\\\",\\\"endPoint\\\":\\\"{\\\\\\\"x\\\\\\\":1382,\\\\\\\"y\\\\\\\":300}\\\",\\\"pointsList\\\":\\\"[{\\\\\\\"x\\\\\\\":1190,\\\\\\\"y\\\\\\\":300},{\\\\\\\"x\\\\\\\":1382,\\\\\\\"y\\\\\\\":300}]\\\"},\\\"key\\\":\\\"Flow_1f91tq0\\\"},{\\\"incoming\\\":[\\\"Gateway_335ghsi\\\"],\\\"outgoing\\\":[\\\"Event_0e4i4kg\\\"],\\\"type\\\":1,\\\"dockers\\\":[],\\\"properties\\\":{\\\"conditionsequenceflow\\\":\\\"ticketType=='A'\\\",\\\"name\\\":\\\"\\\",\\\"form_template_id\\\":2,\\\"text\\\":\\\"\\\",\\\"startPoint\\\":\\\"{\\\\\\\"x\\\\\\\":895,\\\\\\\"y\\\\\\\":300}\\\",\\\"endPoint\\\":\\\"{\\\\\\\"x\\\\\\\":1400,\\\\\\\"y\\\\\\\":282}\\\",\\\"pointsList\\\":\\\"[{\\\\\\\"x\\\\\\\":895,\\\\\\\"y\\\\\\\":300},{\\\\\\\"x\\\\\\\":949,\\\\\\\"y\\\\\\\":300},{\\\\\\\"x\\\\\\\":949,\\\\\\\"y\\\\\\\":177},{\\\\\\\"x\\\\\\\":1400,\\\\\\\"y\\\\\\\":177},{\\\\\\\"x\\\\\\\":1400,\\\\\\\"y\\\\\\\":282}]\\\"},\\\"key\\\":\\\"Flow_1hajbcs\\\"}]}\",\n            \"status\": 1\n        },\n        \"currentTaskName\": \"单一网关\",\n        \"currentNode\": {\n            \"id\": 66,\n            \"tenant\": \"testTenant\",\n            \"caller\": \"testCaller\",\n            \"createTime\": 1679928383000,\n            \"archive\": 0,\n            \"flowInstanceId\": \"4199be3f-cca8-11ed-bd84-f2d57a4703d9\",\n            \"flowDeployId\": \"0ecac7a5-cc9f-11ed-a5b5-f2d57a4703d9\",\n            \"instanceDataId\": \"2441c839-ccae-11ed-85d5-f2d57a4703d9\",\n            \"nodeInstanceId\": \"2444122a-ccae-11ed-85d5-f2d57a4703d9\",\n            \"sourceNodeInstanceId\": \"1edd78d8-ccae-11ed-85d5-f2d57a4703d9\",\n            \"nodeKey\": \"Gateway_335ghsi\",\n            \"sourceNodeKey\": \"Activity_3b36jgt\",\n            \"status\": 3,\n            \"modifyTime\": 1679928383000\n        }\n    }\n}","parameter":[{"key":"errCode","value":"1000","description":"1000成功标志，其他都是失败","not_null":1,"field_type":"Integer","type":"Text","is_checked":1},{"key":"errMsg","value":"Success","description":"","not_null":1,"field_type":"String","type":"Text","is_checked":1},{"key":"data","value":"","description":"数据","not_null":1,"field_type":"Object","type":"Text","is_checked":1},{"key":"data.flowDeployment","value":"","description":"流程部署","not_null":1,"field_type":"Object","type":"Text","is_checked":1},{"key":"data.flowDeployment.id","value":"8","description":"id","not_null":1,"field_type":"Integer","type":"Text","is_checked":1},{"key":"data.flowDeployment.tenant","value":"testTenant","description":"","not_null":1,"field_type":"String","type":"Text","is_checked":1},{"key":"data.flowDeployment.caller","value":"testCaller","description":"","not_null":1,"field_type":"String","type":"Text","is_checked":1},{"key":"data.flowDeployment.createTime","value":"1679916325000","description":"","not_null":1,"field_type":"Integer","type":"Text","is_checked":1},{"key":"data.flowDeployment.archive","value":"0","description":"","not_null":1,"field_type":"Integer","type":"Text","is_checked":1},{"key":"data.flowDeployment.operator","value":"lu","description":"","not_null":1,"field_type":"String","type":"Text","is_checked":1},{"key":"data.flowDeployment.modifyTime","value":"1679921805000","description":"","not_null":1,"field_type":"Integer","type":"Text","is_checked":1},{"key":"data.flowDeployment.remark","value":"","description":"","not_null":1,"field_type":"String","type":"Text","is_checked":1},{"key":"data.flowDeployment.flowDeployId","value":"0ecac7a5-cc9f-11ed-a5b5-f2d57a4703d9","description":"部署id","not_null":1,"field_type":"String","type":"Text","is_checked":1},{"key":"data.flowDeployment.flowModuleId","value":"118ce103-cc92-11ed-a9ed-f2d57a4703d9","description":"模型id","not_null":1,"field_type":"String","type":"Text","is_checked":1},{"key":"data.flowDeployment.flowName","value":"作业票开票审批流程","description":"","not_null":1,"field_type":"String","type":"Text","is_checked":1},{"key":"data.flowDeployment.flowKey","value":"zypsplc","description":"","not_null":1,"field_type":"String","type":"Text","is_checked":1},{"key":"data.flowDeployment.flowModel","value":"{\"flowElementList\":[{\"incoming\":[],\"outgoing\":[\"Flow_13am9ue\"],\"dockers\":[],\"type\":2,\"properties\":{\"name\":\"开始\",\"form_template_id\":2,\"x\":220,\"y\":300,\"text\":{\"x\":220,\"y\":340,\"value\":\"开始\"}},\"key\":\"Event_0etvhi1\"},{\"incoming\":[\"Flow_13am9ue\"],\"outgoing\":[\"Flow_0s6i8kj\"],\"dockers\":[],\"type\":4,\"properties\":{\"name\":\"班组负责人上报\",\"form_template_id\":2,\"x\":450,\"y\":300,\"text\":{\"x\":450,\"y\":300,\"value\":\"班组负责人上报\"}},\"key\":\"Activity_027d0rv\"},{\"incoming\":[\"Flow_0s6i8kj\"],\"outgoing\":[\"Flow_3ruskhh\"],\"dockers\":[],\"type\":4,\"properties\":{\"name\":\"施工项目经理上报\",\"form_template_id\":2,\"x\":700,\"y\":300,\"text\":{\"x\":700,\"y\":300,\"value\":\"施工项目经理上报\"}},\"key\":\"Activity_3b36jgt\"},{\"incoming\":[\"Flow_3ruskhh\"],\"outgoing\":[\"Flow_1kdeshv\",\"Flow_1hajbcs\"],\"dockers\":[],\"type\":6,\"properties\":{\"name\":\"单一网关\",\"form_template_id\":2,\"x\":870,\"y\":300,\"text\":{\"x\":870,\"y\":300,\"value\":\"单一网关\"}},\"key\":\"Gateway_335ghsi\"},{\"incoming\":[\"Flow_1kdeshv\"],\"outgoing\":[\"Flow_1f91tq0\"],\"dockers\":[],\"type\":4,\"properties\":{\"name\":\"监理项目部管理员上报\",\"form_template_id\":2,\"x\":1140,\"y\":300,\"text\":{\"x\":1140,\"y\":300,\"value\":\"监理项目部管理员上报\"}},\"key\":\"Activity_0ag852a\"},{\"incoming\":[\"Flow_1f91tq0\",\"Flow_1hajbcs\"],\"outgoing\":[],\"dockers\":[],\"type\":3,\"properties\":{\"name\":\"结束\",\"form_template_id\":2,\"x\":1400,\"y\":300,\"text\":{\"x\":1400,\"y\":340,\"value\":\"结束\"}},\"key\":\"Event_0e4i4kg\"},{\"incoming\":[\"Event_0etvhi1\"],\"outgoing\":[\"Activity_027d0rv\"],\"type\":1,\"dockers\":[],\"properties\":{\"name\":\"\",\"form_template_id\":2,\"text\":\"\",\"startPoint\":\"{\\\"x\\\":238,\\\"y\\\":300}\",\"endPoint\":\"{\\\"x\\\":400,\\\"y\\\":300}\",\"pointsList\":\"[{\\\"x\\\":238,\\\"y\\\":300},{\\\"x\\\":400,\\\"y\\\":300}]\"},\"key\":\"Flow_13am9ue\"},{\"incoming\":[\"Activity_027d0rv\"],\"outgoing\":[\"Activity_3b36jgt\"],\"type\":1,\"dockers\":[],\"properties\":{\"name\":\"\",\"form_template_id\":2,\"text\":\"\",\"startPoint\":\"{\\\"x\\\":500,\\\"y\\\":300}\",\"endPoint\":\"{\\\"x\\\":650,\\\"y\\\":300}\",\"pointsList\":\"[{\\\"x\\\":500,\\\"y\\\":300},{\\\"x\\\":650,\\\"y\\\":300}]\"},\"key\":\"Flow_0s6i8kj\"},{\"incoming\":[\"Activity_3b36jgt\"],\"outgoing\":[\"Gateway_335ghsi\"],\"type\":1,\"dockers\":[],\"properties\":{\"name\":\"\",\"form_template_id\":2,\"text\":\"\",\"startPoint\":\"{\\\"x\\\":750,\\\"y\\\":300}\",\"endPoint\":\"{\\\"x\\\":845,\\\"y\\\":300}\",\"pointsList\":\"[{\\\"x\\\":750,\\\"y\\\":300},{\\\"x\\\":845,\\\"y\\\":300}]\"},\"key\":\"Flow_3ruskhh\"},{\"incoming\":[\"Gateway_335ghsi\"],\"outgoing\":[\"Activity_0ag852a\"],\"type\":1,\"dockers\":[],\"properties\":{\"conditionsequenceflow\":\"ticketType=='B'\",\"name\":\"\",\"form_template_id\":2,\"text\":\"\",\"startPoint\":\"{\\\"x\\\":895,\\\"y\\\":300}\",\"endPoint\":\"{\\\"x\\\":1090,\\\"y\\\":300}\",\"pointsList\":\"[{\\\"x\\\":895,\\\"y\\\":300},{\\\"x\\\":1090,\\\"y\\\":300}]\"},\"key\":\"Flow_1kdeshv\"},{\"incoming\":[\"Activity_0ag852a\"],\"outgoing\":[\"Event_0e4i4kg\"],\"type\":1,\"dockers\":[],\"properties\":{\"name\":\"\",\"form_template_id\":2,\"text\":\"\",\"startPoint\":\"{\\\"x\\\":1190,\\\"y\\\":300}\",\"endPoint\":\"{\\\"x\\\":1382,\\\"y\\\":300}\",\"pointsList\":\"[{\\\"x\\\":1190,\\\"y\\\":300},{\\\"x\\\":1382,\\\"y\\\":300}]\"},\"key\":\"Flow_1f91tq0\"},{\"incoming\":[\"Gateway_335ghsi\"],\"outgoing\":[\"Event_0e4i4kg\"],\"type\":1,\"dockers\":[],\"properties\":{\"conditionsequenceflow\":\"ticketType=='A'\",\"name\":\"\",\"form_template_id\":2,\"text\":\"\",\"startPoint\":\"{\\\"x\\\":895,\\\"y\\\":300}\",\"endPoint\":\"{\\\"x\\\":1400,\\\"y\\\":282}\",\"pointsList\":\"[{\\\"x\\\":895,\\\"y\\\":300},{\\\"x\\\":949,\\\"y\\\":300},{\\\"x\\\":949,\\\"y\\\":177},{\\\"x\\\":1400,\\\"y\\\":177},{\\\"x\\\":1400,\\\"y\\\":282}]\"},\"key\":\"Flow_1hajbcs\"}]}","description":"部署模型数据","not_null":1,"field_type":"String","type":"Text","is_checked":1},{"key":"data.flowDeployment.status","value":"1","description":"","not_null":1,"field_type":"Integer","type":"Text","is_checked":1},{"key":"data.currentTaskName","value":"单一网关","description":"当前任务ming","not_null":1,"field_type":"String","type":"Text","is_checked":1},{"key":"data.currentNode","value":"","description":"当前审批节点","not_null":1,"field_type":"Object","type":"Text","is_checked":1},{"key":"data.currentNode.id","value":"66","description":"不存在则新增，否则修改","not_null":1,"field_type":"Integer","type":"Text","is_checked":1},{"key":"data.currentNode.tenant","value":"testTenant","description":"","not_null":1,"field_type":"String","type":"Text","is_checked":1},{"key":"data.currentNode.caller","value":"testCaller","description":"","not_null":1,"field_type":"String","type":"Text","is_checked":1},{"key":"data.currentNode.createTime","value":"1679928383000","description":"","not_null":1,"field_type":"Integer","type":"Text","is_checked":1},{"key":"data.currentNode.archive","value":"0","description":"","not_null":1,"field_type":"Integer","type":"Text","is_checked":1},{"key":"data.currentNode.flowInstanceId","value":"4199be3f-cca8-11ed-bd84-f2d57a4703d9","description":"","not_null":1,"field_type":"String","type":"Text","is_checked":1},{"key":"data.currentNode.flowDeployId","value":"0ecac7a5-cc9f-11ed-a5b5-f2d57a4703d9","description":"","not_null":1,"field_type":"String","type":"Text","is_checked":1},{"key":"data.currentNode.instanceDataId","value":"2441c839-ccae-11ed-85d5-f2d57a4703d9","description":"","not_null":1,"field_type":"String","type":"Text","is_checked":1},{"key":"data.currentNode.nodeInstanceId","value":"2444122a-ccae-11ed-85d5-f2d57a4703d9","description":"","not_null":1,"field_type":"String","type":"Text","is_checked":1},{"key":"data.currentNode.sourceNodeInstanceId","value":"1edd78d8-ccae-11ed-85d5-f2d57a4703d9","description":"","not_null":1,"field_type":"String","type":"Text","is_checked":1},{"key":"data.currentNode.nodeKey","value":"Gateway_335ghsi","description":"当前审批节点key","not_null":1,"field_type":"String","type":"Text","is_checked":1},{"key":"data.currentNode.sourceNodeKey","value":"Activity_3b36jgt","description":"","not_null":1,"field_type":"String","type":"Text","is_checked":1},{"key":"data.currentNode.status","value":"3","description":"","not_null":1,"field_type":"Integer","type":"Text","is_checked":1},{"key":"data.currentNode.modifyTime","value":"1679928383000","description":"","not_null":1,"field_type":"Integer","type":"Text","is_checked":1}],"expect":{"name":"成功","isDefault":1,"code":200,"contentType":"json","verifyType":"schema","schema":[],"mock":""}},"error":{"raw":"","parameter":[],"expect":{"name":"失败","isDefault":-1,"code":404,"contentType":"json","verifyType":"schema","schema":[],"mock":""}}},"parent_id":"17ab9d98-5ade-4b35-8e07-29241f7ec7e9"},{"local_target_id":"1c722ac8-d698-4077-aaec-bc54596e9f6c","local_parent_id":"17ab9d98-5ade-4b35-8e07-29241f7ec7e9","name":"查看用户流程实例执行的历史任务","method":"GET","mark":"developing","is_doc":0,"target_type":"api","example_type":"0","project_id":"72be9d29-e4bb-4a94-9e33-1946477a7597","status":1,"sort":8,"create_dtime":1679826642,"update_dtime":1679991068,"target_id":"1c722ac8-d698-4077-aaec-bc54596e9f6c","create_time":"2023-03-26 18:30:42","create_users":{"create_user":"张卢","update_user":"张卢"},"color":"#3A86FF","enable_server_mock":-1,"mock_server_url":"","mock_url":"","new_target_id":"30af32f2-d835-4858-8b7f-5df65fe37d7c","request":{"url":"http:\/\/127.0.0.1:8201\/flow-task\/history\/user-list?flowInstanceId=b065ce97-cca7-11ed-bd84-f2d57a4703d9","description":"","body":{"mode":"none","parameter":[],"raw":"","raw_para":[{"key":"flowModuleId","value":"52dda21b-cbbc-11ed-8f7b-f2d57a4703d9","description":"流程模型id","not_null":1,"field_type":"String","type":"Text","is_checked":1}]},"event":{"pre_script":"","test":""},"auth":{"type":"noauth","kv":{"key":"","value":""},"bearer":{"key":""},"basic":{"username":"","password":""},"digest":{"username":"","password":"","realm":"","nonce":"","algorithm":"","qop":"","nc":"","cnonce":"","opaque":""},"hawk":{"authId":"","authKey":"","algorithm":"","user":"","nonce":"","extraData":"","app":"","delegation":"","timestamp":"","includePayloadHash":-1},"awsv4":{"accessKey":"","secretKey":"","region":"","service":"","sessionToken":"","addAuthDataToQuery":-1},"ntlm":{"username":"","password":"","domain":"","workstation":"","disableRetryRequest":1},"edgegrid":{"accessToken":"","clientToken":"","clientSecret":"","nonce":"","timestamp":"","baseURi":"","headersToSign":""},"oauth1":{"consumerKey":"","consumerSecret":"","signatureMethod":"","addEmptyParamsToSign":-1,"includeBodyHash":-1,"addParamsToHeader":-1,"realm":"","version":"1.0","nonce":"","timestamp":"","verifier":"","callback":"","tokenSecret":"","token":""}},"header":{"parameter":[]},"query":{"parameter":[{"description":"流程实例id","is_checked":1,"key":"flowInstanceId","type":"Text","not_null":1,"field_type":"String","value":"b065ce97-cca7-11ed-bd84-f2d57a4703d9","key_var":"","value_var":""}]},"cookie":{"parameter":[]},"resful":{"parameter":[]},"url_var":"http:\/\/127.0.0.1:8201\/flow-task\/history\/user-list?flowInstanceId=b065ce97-cca7-11ed-bd84-f2d57a4703d9"},"response":{"success":{"raw":"{\n\t\"errCode\": 1000,\n\t\"errMsg\": \"Success\",\n\t\"data\": {\n\t\t\"errCode\": 1000,\n\t\t\"errMsg\": \"Success\",\n\t\t\"nodeInstanceList\": [\n\t\t\t{\n\t\t\t\t\"modelKey\": \"Activity_0dk2jeq\",\n\t\t\t\t\"modelName\": \"\",\n\t\t\t\t\"properties\": {\n\t\t\t\t\t\"form_template_id\": 1,\n\t\t\t\t\t\"name\": \"\",\n\t\t\t\t\t\"x\": 580,\n\t\t\t\t\t\"y\": 290,\n\t\t\t\t\t\"text\": \"\"\n\t\t\t\t},\n\t\t\t\t\"status\": 2,\n\t\t\t\t\"nodeInstanceId\": \"298c66f1-cbc0-11ed-89e7-f2d57a4703d9\",\n\t\t\t\t\"createTime\": 1679826171000,\n\t\t\t\t\"modifyTime\": 1679826171000\n\t\t\t}\n\t\t]\n\t}\n}","parameter":[{"key":"errCode","value":"1000","description":"1000成功标志，其他都是失败","not_null":1,"field_type":"Integer","type":"Text","is_checked":1},{"key":"errMsg","value":"Success","description":"","not_null":1,"field_type":"String","type":"Text","is_checked":1},{"key":"data","value":"","description":"数据","not_null":1,"field_type":"Object","type":"Text","is_checked":1},{"key":"data.errCode","value":"1000","description":"成功标志","not_null":1,"field_type":"Integer","type":"Text","is_checked":1},{"key":"data.errMsg","value":"Success","description":"","not_null":1,"field_type":"String","type":"Text","is_checked":1},{"key":"data.nodeInstanceList","value":"","description":"流程实例节点列表","not_null":1,"field_type":"Array","type":"Text","is_checked":1},{"key":"data.nodeInstanceList.modelKey","value":"Activity_0dk2jeq","description":"节点key","not_null":1,"field_type":"String","type":"Text","is_checked":1},{"key":"data.nodeInstanceList.modelName","value":"","description":"节点名称","not_null":1,"field_type":"String","type":"Text","is_checked":1},{"key":"data.nodeInstanceList.properties","value":"","description":"属性","not_null":1,"field_type":"Object","type":"Text","is_checked":1},{"key":"data.nodeInstanceList.properties.form_template_id","value":"1","description":"表单模版id","not_null":1,"field_type":"Integer","type":"Text","is_checked":1},{"key":"data.nodeInstanceList.properties.name","value":"","description":"","not_null":1,"field_type":"String","type":"Text","is_checked":1},{"key":"data.nodeInstanceList.properties.x","value":"580","description":"","not_null":1,"field_type":"Integer","type":"Text","is_checked":1},{"key":"data.nodeInstanceList.properties.y","value":"290","description":"","not_null":1,"field_type":"Integer","type":"Text","is_checked":1},{"key":"data.nodeInstanceList.properties.text","value":"","description":"","not_null":1,"field_type":"String","type":"Text","is_checked":1},{"key":"data.nodeInstanceList.status","value":"2","description":"状态(1.处理成功 2.处理中 3.处理失败 4.处理已撤销)","not_null":1,"field_type":"Integer","type":"Text","is_checked":1},{"key":"data.nodeInstanceList.nodeInstanceId","value":"298c66f1-cbc0-11ed-89e7-f2d57a4703d9","description":"节点id","not_null":1,"field_type":"String","type":"Text","is_checked":1},{"key":"data.nodeInstanceList.createTime","value":"1679826171000","description":"创建时间","not_null":1,"field_type":"Integer","type":"Text","is_checked":1},{"key":"data.nodeInstanceList.modifyTime","value":"1679826171000","description":"更新shi ji","not_null":1,"field_type":"Integer","type":"Text","is_checked":1}],"expect":{"name":"成功","isDefault":1,"code":200,"contentType":"json","verifyType":"schema","schema":[],"mock":""}},"error":{"raw":"","parameter":[],"expect":{"name":"失败","isDefault":-1,"code":404,"contentType":"json","verifyType":"schema","schema":[],"mock":""}}},"parent_id":"17ab9d98-5ade-4b35-8e07-29241f7ec7e9"},{"local_target_id":"c8f471ce-7809-42b5-b705-2e5a089b6d53","local_parent_id":"17ab9d98-5ade-4b35-8e07-29241f7ec7e9","name":"查看用户流程实例的元素","method":"GET","mark":"developing","is_doc":0,"target_type":"api","example_type":"0","project_id":"72be9d29-e4bb-4a94-9e33-1946477a7597","status":1,"sort":9,"create_dtime":1679831806,"update_dtime":1679885947,"target_id":"c8f471ce-7809-42b5-b705-2e5a089b6d53","create_time":"2023-03-26 19:56:46","create_users":{"create_user":"张卢","update_user":"张卢"},"color":"#3A86FF","enable_server_mock":-1,"mock_server_url":"","mock_url":"","new_target_id":"2ef67b97-5352-4890-8d7a-aed25a5276cf","request":{"url":"http:\/\/127.0.0.1:8201\/flow-task\/history\/element-list?flowInstanceId=992424de-cc3c-11ed-9709-f2d57a4703d9","description":"","body":{"mode":"none","parameter":[],"raw":"","raw_para":[{"key":"flowModuleId","value":"52dda21b-cbbc-11ed-8f7b-f2d57a4703d9","description":"流程模型id","not_null":1,"field_type":"String","type":"Text","is_checked":1}]},"event":{"pre_script":"","test":""},"auth":{"type":"noauth","kv":{"key":"","value":""},"bearer":{"key":""},"basic":{"username":"","password":""},"digest":{"username":"","password":"","realm":"","nonce":"","algorithm":"","qop":"","nc":"","cnonce":"","opaque":""},"hawk":{"authId":"","authKey":"","algorithm":"","user":"","nonce":"","extraData":"","app":"","delegation":"","timestamp":"","includePayloadHash":-1},"awsv4":{"accessKey":"","secretKey":"","region":"","service":"","sessionToken":"","addAuthDataToQuery":-1},"ntlm":{"username":"","password":"","domain":"","workstation":"","disableRetryRequest":1},"edgegrid":{"accessToken":"","clientToken":"","clientSecret":"","nonce":"","timestamp":"","baseURi":"","headersToSign":""},"oauth1":{"consumerKey":"","consumerSecret":"","signatureMethod":"","addEmptyParamsToSign":-1,"includeBodyHash":-1,"addParamsToHeader":-1,"realm":"","version":"1.0","nonce":"","timestamp":"","verifier":"","callback":"","tokenSecret":"","token":""}},"header":{"parameter":[]},"query":{"parameter":[{"description":"流程实例id","is_checked":1,"key":"flowInstanceId","type":"Text","not_null":1,"field_type":"String","value":"992424de-cc3c-11ed-9709-f2d57a4703d9","key_var":"","value_var":""}]},"cookie":{"parameter":[]},"resful":{"parameter":[]},"url_var":"http:\/\/127.0.0.1:8201\/flow-task\/history\/element-list?flowInstanceId=992424de-cc3c-11ed-9709-f2d57a4703d9"},"response":{"success":{"raw":"{\n\t\"errCode\": 1000,\n\t\"errMsg\": \"Success\",\n\t\"data\": {\n\t\t\"errCode\": 1000,\n\t\t\"errMsg\": \"Success\",\n\t\t\"nodeInstanceList\": [\n\t\t\t{\n\t\t\t\t\"modelKey\": \"Activity_0dk2jeq\",\n\t\t\t\t\"modelName\": \"\",\n\t\t\t\t\"properties\": {\n\t\t\t\t\t\"form_template_id\": 1,\n\t\t\t\t\t\"name\": \"\",\n\t\t\t\t\t\"x\": 580,\n\t\t\t\t\t\"y\": 290,\n\t\t\t\t\t\"text\": \"\"\n\t\t\t\t},\n\t\t\t\t\"status\": 2,\n\t\t\t\t\"nodeInstanceId\": \"298c66f1-cbc0-11ed-89e7-f2d57a4703d9\",\n\t\t\t\t\"createTime\": 1679826171000,\n\t\t\t\t\"modifyTime\": 1679826171000\n\t\t\t}\n\t\t]\n\t}\n}","parameter":[{"key":"errCode","value":"1000","description":"1000成功标志，其他都是失败","not_null":1,"field_type":"Integer","type":"Text","is_checked":1},{"key":"errMsg","value":"Success","description":"","not_null":1,"field_type":"String","type":"Text","is_checked":1},{"key":"data","value":"","description":"数据","not_null":1,"field_type":"Object","type":"Text","is_checked":1},{"key":"data.errCode","value":"1000","description":"成功标志","not_null":1,"field_type":"Integer","type":"Text","is_checked":1},{"key":"data.errMsg","value":"Success","description":"","not_null":1,"field_type":"String","type":"Text","is_checked":1},{"key":"data.nodeInstanceList","value":"","description":"流程实例节点列表","not_null":1,"field_type":"Array","type":"Text","is_checked":1},{"key":"data.nodeInstanceList.modelKey","value":"Activity_0dk2jeq","description":"节点key","not_null":1,"field_type":"String","type":"Text","is_checked":1},{"key":"data.nodeInstanceList.modelName","value":"","description":"节点名称","not_null":1,"field_type":"String","type":"Text","is_checked":1},{"key":"data.nodeInstanceList.properties","value":"","description":"属性","not_null":1,"field_type":"Object","type":"Text","is_checked":1},{"key":"data.nodeInstanceList.properties.form_template_id","value":"1","description":"表单模版id","not_null":1,"field_type":"Integer","type":"Text","is_checked":1},{"key":"data.nodeInstanceList.properties.name","value":"","description":"","not_null":1,"field_type":"String","type":"Text","is_checked":1},{"key":"data.nodeInstanceList.properties.x","value":"580","description":"","not_null":1,"field_type":"Integer","type":"Text","is_checked":1},{"key":"data.nodeInstanceList.properties.y","value":"290","description":"","not_null":1,"field_type":"Integer","type":"Text","is_checked":1},{"key":"data.nodeInstanceList.properties.text","value":"","description":"","not_null":1,"field_type":"String","type":"Text","is_checked":1},{"key":"data.nodeInstanceList.status","value":"2","description":"状态(1.处理成功 2.处理中 3.处理失败 4.处理已撤销)","not_null":1,"field_type":"Integer","type":"Text","is_checked":1},{"key":"data.nodeInstanceList.nodeInstanceId","value":"298c66f1-cbc0-11ed-89e7-f2d57a4703d9","description":"节点id","not_null":1,"field_type":"String","type":"Text","is_checked":1},{"key":"data.nodeInstanceList.createTime","value":"1679826171000","description":"创建时间","not_null":1,"field_type":"Integer","type":"Text","is_checked":1},{"key":"data.nodeInstanceList.modifyTime","value":"1679826171000","description":"更新shi ji","not_null":1,"field_type":"Integer","type":"Text","is_checked":1}],"expect":{"name":"成功","isDefault":1,"code":200,"contentType":"json","verifyType":"schema","schema":[],"mock":""}},"error":{"raw":"","parameter":[],"expect":{"name":"失败","isDefault":-1,"code":404,"contentType":"json","verifyType":"schema","schema":[],"mock":""}}},"parent_id":"17ab9d98-5ade-4b35-8e07-29241f7ec7e9"}]}]}]}]}};
        apipostData = apipostData.data;
        consoleLog('apipostData ---- ',apipostData);
    } catch (e) { }

    if (!_.isEmpty(apipostData)) {
        if (!_.isArray(apipostData.children)) {
            apipostData.children = [];
        }

        // 导航菜单
        apipostData.children = sortData(apipostData.children, 'ascending');

        // 数据词典（对象，键为target_id）
        const dataDB = {};
        const ruleType = (data) => {
            const d = Object.prototype.toString.call(data);
            return d.substr(8, d.length - 9);
        };

        const renderListtoObject = (List) => {
            if (ruleType(List) === 'Array') {
                List &&
                List.forEach((item) => {
                    if (item.children) {
                        renderListtoObject(item.children);
                        dataDB[item.target_id] = item;
                    } else {
                        dataDB[item.target_id] = item;
                    }
                });
            }
        };

        // 搜索
        $(document).on('input', 'input[name="search-input"]', function () {
            let keyword = _.toLower($(this).val());
            let searchResult = [];

            if (keyword == '') {
                $('.apipost-left-nav-template').find('li').removeClass('is-search-hidden search-toggle');
            } else {

                if (_.isObject(dataDB) && !_.isEmpty(dataDB)) {
                    _.forEach(dataDB, function (item) {
                        consoleLog(_.toLower(item.name), keyword, _.toLower(item.name).indexOf(keyword))
                        if (_.toLower(item.url).indexOf(keyword) > -1 || _.toLower(item.name).indexOf(keyword) > -1 || _.toLower(item.method).indexOf(keyword) > -1) {
                            searchResult.push(item.target_id);
                        }
                    });

                    if (searchResult.length == 0) {
                        $('.apipost-left-nav-template').find('li').addClass('is-search-hidden');
                    } else {
                        searchResult.forEach(target_id => {
                            searchResult = _.concat(searchResult, getParentTargetIDs(Object.values(dataDB), target_id));
                        })
                    }

                    // 隐藏其他
                    _.difference(Object.keys(dataDB), searchResult).forEach(hidden_target_id => {
                        $(`.apipost-left-nav-template li[data-target_id="${hidden_target_id}"]`).addClass('is-search-hidden');
                        $(`.apipost-left-nav-template li[data-target_id="${hidden_target_id}"][data-type="folder"]`).addClass('search-toggle');
                    })

                    // 展示结果
                    searchResult.forEach(show_target_id => {
                        $(`.apipost-left-nav-template li[data-target_id="${show_target_id}"]`).removeClass('is-search-hidden is-hidden search-toggle');
                        $(`.apipost-left-nav-template li[data-target_id="${show_target_id}"][data-type="folder"]`).removeClass('search-toggle');
                    })
                }
            }
        })

        renderListtoObject(apipostData.children);

        // 获取当前的target_id
        let _target_id = '001';
        const _urlParas = GetUrlQuery();

        if (_.isObject(_urlParas) && _.isString(_urlParas.target_id)) {
            _target_id = _urlParas.target_id;
        }

        // 修改地址栏
        function changeURLStatic(name, value) {
            const url = changeURLParam(location.href, name, value); // 修改 URL 参数
            history.replaceState(null, null, url); // 替换地址栏
        }

        function changeURLParam(url, name, value) {
            const reg = eval(`/([?|&]${name}=)[^&]*/gi`);
            value = value.toString().replace(/(^\s*)|(\s*$)/g, ''); // 移除首尾空格
            let url2;
            if (!value) {
                // remove
                url2 = url.replace(reg, '');
            } else if (url.match(reg)) {
                // edit
                url2 = url.replace(reg, `$1${value}`);
            } else {
                // add
                url2 = `${url + (url.indexOf('?') > -1 ? '&' : '?') + name}=${value}`;
            }
            return url2;
        }

        // 格式化内容
        function formatJson(json) {
            // consoleLog(json, apipostData);

            // name
            if (json.target_type == 'global') {
                _.set(json, 'name', '全局公共参数');
            }

            // mark
            if (_.has(apipostData, 'project.vars.mark') && _.isArray(apipostData.project.vars.mark)) {
                const _markedObj = {};
                apipostData.project.vars.mark.forEach((item) => {
                    _markedObj[item.key] = item;
                });

                if (_.isObject(_markedObj[json.mark])) {
                    _.set(json, 'formatMark', _markedObj[json.mark]);
                }
            }

            // time
            if (_.isNumber(json.create_dtime)) {
                if (String(json.create_dtime).length == 10) {
                    _.set(
                        json,
                        'format_create_dtime',
                        dayjs.unix(json.create_dtime).format('YYYY-MM-DD HH:mm:ss')
                    );
                }

                if (String(json.create_dtime).length == 13) {
                    _.set(json, 'format_create_dtime', dayjs(json.create_dtime).format('YYYY-MM-DD HH:mm:ss'));
                }
            } else {
                if (_.isString(json.create_dtime)) {
                    _.set(json, 'format_create_dtime', json.create_dtime);
                } else {
                    _.set(json, 'format_create_dtime', dayjs().format('YYYY-MM-DD HH:mm:ss'));
                }
            }

            if (_.isNumber(json.update_dtime)) {
                if (String(json.update_dtime).length == 10) {
                    _.set(
                        json,
                        'format_update_dtime',
                        dayjs.unix(json.update_dtime).format('YYYY-MM-DD HH:mm:ss')
                    );
                }

                if (String(json.update_dtime).length == 13) {
                    _.set(json, 'format_update_dtime', dayjs(json.update_dtime).format('YYYY-MM-DD HH:mm:ss'));
                }
            } else {
                if (_.isString(json.update_dtime)) {
                    _.set(json, 'format_update_dtime', json.update_dtime);
                } else {
                    _.set(json, 'format_update_dtime', dayjs().format('YYYY-MM-DD HH:mm:ss'));
                }
            }

            // formatMode
            if (_.has(json, 'request.body.mode')) {
                switch (json.request.body.mode) {
                    case 'none':
                        break;
                    case 'form-data':
                        _.set(json, 'request.body.formatMode', 'multipart/form-data');
                        break;
                    case 'urlencoded':
                        _.set(json, 'request.body.formatMode', 'application/x-www-form-urlencoded');
                        break;
                    case 'json':
                        _.set(json, 'request.body.formatMode', 'application/json');
                        break;
                    case 'xml':
                        _.set(json, 'request.body.formatMode', 'application/xml');
                        break;
                    case 'javascript':
                        _.set(json, 'request.body.formatMode', 'application/javascript');
                        break;
                    case 'plain':
                        _.set(json, 'request.body.formatMode', 'text/plain');
                        break;
                    case 'html':
                        _.set(json, 'request.body.formatMode', 'text/html');
                        break;
                }
            }

            if(_.has(json, 'request.auth.type')) {
                switch (json.request.auth.type) {
                    case 'noauth':
                        _.set(json, 'request.authType', '无需认证');
                        break;
                    case 'awsv4':
                        _.set(json, 'request.authType', 'AWS Signature');
                        break;
                    case 'basic':
                        _.set(json, 'request.authType', 'Basic auth');
                        break;
                    case 'bearer':
                        _.set(json, 'request.authType', 'Bearer auth');
                        break;
                    case 'digest':
                        _.set(json, 'request.authType', 'Digest auth');
                        break;
                    case 'edgegrid':
                        _.set(json, 'request.authType', 'Akamai EdgeGrid');
                        break;
                    case 'hawk':
                        _.set(json, 'request.authType', 'Hawk authentication');
                        break;
                    case 'kv':
                        _.set(json, 'request.authType', '私密键值对');
                        break;
                    case 'ntlm':
                        _.set(json, 'request.authType', 'NTLM Authentication');
                        break;
                    case 'oauth1':
                        _.set(json, 'request.authType', 'OAuth 1.0');
                        break;
                }
            }

            json.url = json.request.url;
            return json;
        }

        // 加载当前数据
        function loadData(_target_id,dataDB) {

            // 获取当前的数据信息
            let _targetData = {};

            // 右侧浮动导航
            let floatNavs = [];

            if(_target_id == '001'){
                if (_.isObject(dataDB[_target_id])) {
                    _targetData = _.cloneDeep(dataDB[_target_id]);
                } else if (
                    _.has(apipostData, 'project.vars.request') &&
                    _.isObject(apipostData.project.vars.request)
                ) {
                    _targetData = {
                        target_type: 'global',
                        request: apipostData.project.vars.request,
                        script: apipostData.project.vars.script,
                    };
                } else {
                    _targetData = {
                        target_type: 'none',
                        request: {},
                    };
                }

                _targetData = formatJson(_targetData);

                $('.apipost-doc-body-nav-list').find('li').removeClass('active');
                $('.apipost-doc-body-nav-list')
                    .find(`li[data-target_id="${_target_id}"]`)
                    .eq(0)
                    .addClass('active')
                    .toggleClass('toggle search-toggle');

                // const children_ids = getChildrenTargetIDs(Object.values(dataDB), _target_id);
                //
                // if (_.isArray(children_ids)) {
                //     if (
                //         $('.apipost-doc-body-nav-list')
                //             .find(`li[data-target_id="${_target_id}"]`)
                //             .eq(0)
                //             .hasClass('toggle')
                //     ) {
                //         children_ids.forEach((target_id) => {
                //             if ($(`li[data-target_id="${target_id}"]`).attr('data-type') == 'folder') {
                //                 $(`li[data-target_id="${target_id}"]`).addClass('is-hidden toggle');
                //             } else {
                //                 $(`li[data-target_id="${target_id}"]`).addClass('is-hidden');
                //             }
                //         });
                //     } else {
                //         children_ids.forEach((target_id) => {
                //             if ($(`li[data-target_id="${target_id}"]`).attr('data-type') == 'folder') {
                //                 $(`li[data-target_id="${target_id}"]`).removeClass('is-hidden toggle');
                //             } else {
                //                 $(`li[data-target_id="${target_id}"]`).removeClass('is-hidden');
                //             }
                //         });
                //     }
                // }

                _targetData.copyData = JSON.parse(JSON.stringify(_targetData));
                if(_targetData.copyData.target_type == 'example'){
                    _targetData.copyData.target_type = _targetData.copyData.example_type;
                }

                // 加载左侧内容
                const _docContentHtml = template('apipost-doc-wrap-tpl', {
                    data: _targetData,
                    target_id: _target_id,
                });

                $('.apipost-doc-wrap').html(_docContentHtml);

                // 右侧浮动导航
                floatNavs = [];
                $('.apipost-doc-wrap').find('h3 ,h4, h5, h6, h7').each((i, item) => {
                    let text = $(item).attr('data-text');
                    let id = $(item).attr('id');
                    if (text) {
                        floatNavs.push({
                            text, id,
                            name: $(item).prop("tagName"),
                            indent: $(item).prop("tagName").replace(/[^0-9]/ig, "") - 2,
                        })
                    }
                })

                const _floatNavs = template('apipost-float-nav-template-tpl', {
                    list: floatNavs
                });

                $('.apipost-float-nav-template').html(_floatNavs);

                // 请求body raw 参数
                try {
                    if (_targetData.target_type == 'grpc' || _targetData.example_type == 'grpc') {
                        $('.request-body-raw-editor-json').each((i, item) => {
                            let val = $(item).prev('input').val();

                            if(val){
                                new JsonEditor(
                                    `#${$(item).attr('id')}`,
                                    JSON5.parse(val),
                                    {},
                                    []
                                ).load(JSON5.parse(val), []);
                            }
                        })
                    }

                    if (_targetData.target_type == 'api' || _targetData.example_type == 'api') {
                        let obj = [];
                        if (_.has(_targetData, 'request.body.raw_para')) {
                            obj = _targetData.request.body.raw_para.map((itemRaw) => {
                                const arr = itemRaw.key.split('.');
                                itemRaw.newKey = arr[arr.length - 1];
                                return itemRaw;
                            });
                        }

                        if($('#request-body-raw-editor-input').length > 0){
                            new JsonEditor('#request-body-raw-editor-json',
                                JSON5.parse($('#request-body-raw-editor-input').val()),
                                {},
                                obj
                            ).load(JSON5.parse($('#request-body-raw-editor-input').val()), obj);
                        }
                    }
                } catch (e) { }

                // 响应示例 raw 参数
                try {
                    _.forEach(_targetData.response, function (item, key) {
                        const obj = item.parameter.map((itemRaw) => {
                            const arr = itemRaw.key.split('.');
                            itemRaw.newKey = arr[arr.length - 1];
                            return itemRaw;
                        });

                        if($(`#response-raw-${key}-json-input`).length > 0){
                            new JsonEditor(`#response-raw-${key}-json`,
                                JSON5.parse($(`#response-raw-${key}-json-input`).val()),
                                {},
                                obj
                            ).load(JSON5.parse($(`#response-raw-${key}-json-input`).val()), obj);
                        }
                    });
                } catch (e) { }

                // 更新 url
                changeURLStatic('target_id', _target_id);

                // 优化 apipost-doc-paras 展示
                $('.apipost-doc-paras').each((i, item) => {
                    if ($(item).children().length == 0) {
                        let _id = $(item).attr('for-id');
                        let _title = $(`#${_id}`).attr('data-text');
                        let _tipDiv = `<div class="apipost-no-data">暂无${_title}数据</div>`;
                        $(item).append(_tipDiv)
                    }
                })
            }else {

                let newdata = Object.values(dataDB)
                // let LevelArr = []
                //
                // function levelTree(arr1, newarr) {
                //     arr1.forEach(item => {
                //         if (item.children && item.children.length > 0) {
                //             newarr.push(item)
                //             levelTree(item.children, newarr)
                //         } else {
                //             newarr.push(item)
                //         }
                //     })
                // }
                //
                // levelTree(newdata, LevelArr)

                newdata.forEach(item => {
                    if (item.local_target_id == _target_id) {

                        _targetData = formatJson(item);

                        $('.apipost-doc-body-nav-list').find('li').removeClass('active');
                        $('.apipost-doc-body-nav-list')
                            .find(`li[data-target_id="${_target_id}"]`)
                            .eq(0)
                            .addClass('active')
                            .toggleClass('toggle search-toggle');

                        const children_ids = getChildrenTargetIDs(Object.values(dataDB), _target_id);

                        if (_.isArray(children_ids)) {
                            if (
                                $('.apipost-doc-body-nav-list')
                                    .find(`li[data-target_id="${_target_id}"]`)
                                    .eq(0)
                                    .hasClass('toggle')
                            ) {
                                children_ids.forEach((target_id) => {
                                    if ($(`li[data-target_id="${target_id}"]`).attr('data-type') == 'folder') {
                                        $(`li[data-target_id="${target_id}"]`).addClass('is-hidden toggle');
                                    } else {
                                        $(`li[data-target_id="${target_id}"]`).addClass('is-hidden');
                                    }
                                });
                            } else {
                                children_ids.forEach((target_id) => {
                                    if ($(`li[data-target_id="${target_id}"]`).attr('data-type') == 'folder') {
                                        $(`li[data-target_id="${target_id}"]`).removeClass('is-hidden toggle');
                                    } else {
                                        $(`li[data-target_id="${target_id}"]`).removeClass('is-hidden');
                                    }
                                });
                            }
                        }

                        // 加载左侧内容
                        const _docContentHtml = template('apipost-doc-wrap-tpl', {
                            data: _targetData,
                            target_id: _target_id,
                        });

                        $('.apipost-doc-wrap').html(_docContentHtml);

                        // 右侧浮动导航
                        floatNavs = [];
                        $('.apipost-doc-wrap').find('h3 ,h4, h5, h6, h7').each((i, item) => {
                            let text = $(item).attr('data-text');
                            let id = $(item).attr('id');
                            if (text) {
                                floatNavs.push({
                                    text, id,
                                    name: $(item).prop("tagName"),
                                    indent: $(item).prop("tagName").replace(/[^0-9]/ig, "") - 2,
                                })
                            }
                        })

                        const _floatNavs = template('apipost-float-nav-template-tpl', {
                            list: floatNavs
                        });

                        $('.apipost-float-nav-template').html(_floatNavs);

                        // 请求body raw 参数
                        try {
                            if (_targetData.target_type == 'grpc' || _targetData.example_type == 'grpc') {
                                $('.request-body-raw-editor-json').each((i, item) => {
                                    let val = $(item).prev('input').val();

                                    if(val){
                                        new JsonEditor(
                                            `#${$(item).attr('id')}`,
                                            JSON5.parse(val),
                                            {},
                                            []
                                        ).load(JSON5.parse(val), []);
                                    }
                                })
                            }

                            if (_targetData.target_type == 'api' || _targetData.example_type == 'api') {
                                let obj = [];
                                if (_.has(_targetData, 'request.body.raw_para')) {
                                    obj = _targetData.request.body.raw_para.map((itemRaw) => {
                                        const arr = itemRaw.key.split('.');
                                        itemRaw.newKey = arr[arr.length - 1];
                                        return itemRaw;
                                    });
                                }

                                if($('#request-body-raw-editor-input').length > 0){
                                    new JsonEditor('#request-body-raw-editor-json',
                                        JSON5.parse($('#request-body-raw-editor-input').val()),
                                        {},
                                        obj
                                    ).load(JSON5.parse($('#request-body-raw-editor-input').val()), obj);
                                }
                            }
                        } catch (e) { }

                        // 响应示例 raw 参数
                        try {
                            _.forEach(_targetData.response, function (item, key) {
                                const obj = item.parameter.map((itemRaw) => {
                                    const arr = itemRaw.key.split('.');
                                    itemRaw.newKey = arr[arr.length - 1];
                                    return itemRaw;
                                });

                                if($(`#response-raw-${key}-json-input`).length > 0){
                                    new JsonEditor(`#response-raw-${key}-json`,
                                        JSON5.parse($(`#response-raw-${key}-json-input`).val()),
                                        {},
                                        obj
                                    ).load(JSON5.parse($(`#response-raw-${key}-json-input`).val()), obj);
                                }
                            });
                        } catch (e) { }
                        // 更新 url
                        changeURLStatic('target_id', _target_id);
                    }
                    // 优化 apipost-doc-paras 展示
                    $('.apipost-doc-paras').each((i, item) => {
                        if ($(item).children().length == 0) {
                            let _id = $(item).attr('for-id');
                            let _title = $(`#${_id}`).attr('data-text');
                            let _tipDiv = `<div class="apipost-no-data">暂无${_title}数据</div>`;
                            $(item).append(_tipDiv)
                        }
                    })
                })
            }

            // 折叠导航(移动端)
            $('.apipost-doc-body-nav,.apipost-doc-body-content').removeClass('open');

            $(document).on('scroll', function (e) {
                let currentNav= '';
                let scrollTop = $(document).scrollTop();

                floatNavs.forEach(item => {
                    if ($(`#${item.id}`).offset()) {
                        if ($(`#${item.id}`).offset().top > scrollTop && currentNav == '') {
                            currentNav = item.id
                            // console.log(currentNav)
                            $('.apipost-float-nav-template').find(`li[data-id="${currentNav}"]`).addClass('active').siblings().removeClass('active');
                        }
                    }
                })
                // console.log('请求参数:', $('#请求参数').offset().top, scrollTop)
            }).on('click', '.apipost-float-nav-template li', function(){
                $(this).addClass('active').siblings().removeClass('active');
            });

        }

        // 初始化左侧导航列表
        const _leftNavHtml = template('apipost-left-nav-template-tpl', {
            list: apipostData.children,
            target_id: _target_id,
        });

        $('.apipost-left-nav-template').html(_leftNavHtml);

        // 初始化项目公共信息
        $('title').text(`${apipostData.project_name} - Powered by Apipost V7`);
        $('.apipost-doc-body-nav-title').text(`${apipostData.project_name}`);

        // project-logo
        if (_.has(apipostData, 'project_logo') && apipostData.project_logo != '') {
            $('.project-logo').attr('src', apipostData.project_logo);
        }

        $('.project-logo').on('error', function () {
            $('.project-logo').attr('src', 'https://img.cdn.apipost.cn/docs/images7/logo.svg');
        });
        // consoleLog(apipostData)

        // 复制按钮
        const clipboard = new ClipboardJS('.copy-clipboard');
        clipboard.on('success', function (e) {
            $('.copy-clipboard-success').remove();
            $(e.trigger).append('<i class="copy-clipboard-success">复制成功</i>');
            e.clearSelection();
            $('.copy-clipboard-success').fadeOut(1000);
            setTimeout(function () {
                $('.copy-clipboard-success').remove();
            }, 1500);
        });

        clipboard.on('error', function (e) { });

        // 优化左侧菜单展示，默认收起
        // 获取当前的父ID
        let _target_parent_ids = getParentTargetIDs(Object.values(dataDB), _target_id);

        $('.apipost-left-nav-template').children('li').each((i, item) => {
            if ($(item).attr('data-type') == 'folder') {
                if (_target_parent_ids.indexOf($(item).attr('data-target_id')) == -1) {
                    $(item).addClass('toggle');
                } else {
                    $(item).removeClass('toggle');
                }
            }

            //if($(item).attr('data-type') != 'example') {
                if ($(item).attr('data-parent_id') != '0' && _target_parent_ids.indexOf($(item).attr('data-target_id')) == -1 && $(item).attr('data-target_id') != _target_id) {
                    $(item).addClass('is-hidden');
                } else {
                    $(item).removeClass('is-hidden');
                }
            //}
        })

        // 同级展示
        if (dataDB[_target_id]) {
            // $('.apipost-left-nav-template').children(`li[data-parent_id="${dataDB[_target_id].parent_id}"]`).removeClass('is-hidden');
            _target_parent_ids.forEach(_parent_id => {
                $('.apipost-left-nav-template').children(`li[data-parent_id="${_parent_id}"]`).removeClass('is-hidden');
            })
        }

        // alert(dataDB)
        // 加载单接口信息
        loadData(_target_id, dataDB);

        // 绑定事件
        $(document).on('click', '.mobile-nav-toggle-link-btn', function () { // 移动端导航
            $('.apipost-doc-body-nav,.apipost-doc-body-content').addClass('open');
        }).on('click', '.load-data-btn', function () { // 加载数据
            let target_id = $(this).attr('data-target_id');
            // let parent_id = $(this).attr('data-parent_id');
            // let target_type = $(this).attr('data-type');
            // let indent = $(this).attr('data-indent');

            // 加载单条数据
            loadData(target_id, dataDB);
        }).on('click', '.export-download-btn', function () { // 导出文档
            $(this).next('ul').toggleClass('is-hidden');
        })
    } else {
        // 空数据
        // consoleLog('null')
    }
</script>
<script>
    var _hmt = _hmt || [];
    (function () {
        var hm = document.createElement("script");
        hm.src = "https://hm.baidu.com/hm.js?a046ce178828e393614822a297b8d296";
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(hm, s);
    })();
</script>
</body>

</html>
